mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-29 19:50:40 +00:00
[MOVED FROM GST-P-FARSIGHT] Set seqnum-base and clock-base in caps from rtpmuxer
This commit is contained in:
parent
0b710c450a
commit
38e339a135
1 changed files with 14 additions and 5 deletions
|
@ -416,12 +416,21 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps)
|
||||||
ret = gst_rtp_mux_set_clock_rate (rtp_mux, clock_rate);
|
ret = gst_rtp_mux_set_clock_rate (rtp_mux, clock_rate);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (ret) {
|
if (!ret)
|
||||||
|
goto out;
|
||||||
|
|
||||||
|
caps = gst_caps_make_writable (caps);
|
||||||
|
|
||||||
|
gst_caps_set_simple (caps,
|
||||||
|
"clock-base", G_TYPE_UINT, rtp_mux->ts_base,
|
||||||
|
"seqnum-base", G_TYPE_UINT, rtp_mux->seqnum_base,
|
||||||
|
NULL);
|
||||||
|
|
||||||
GST_DEBUG_OBJECT (rtp_mux,
|
GST_DEBUG_OBJECT (rtp_mux,
|
||||||
"seting caps %" GST_PTR_FORMAT " on src pad..", caps);
|
"seting caps %" GST_PTR_FORMAT " on src pad..", caps);
|
||||||
ret = gst_pad_set_caps (rtp_mux->srcpad, caps);
|
ret = gst_pad_set_caps (rtp_mux->srcpad, caps);
|
||||||
}
|
|
||||||
|
|
||||||
|
out:
|
||||||
gst_object_unref (rtp_mux);
|
gst_object_unref (rtp_mux);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in a new issue