mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
[MOVED FROM GST-P-FARSIGHT] Store the clock-base on setcaps
This commit is contained in:
parent
963cec9458
commit
1875f490c5
1 changed files with 5 additions and 0 deletions
|
@ -430,6 +430,7 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps)
|
||||||
GstStructure *structure;
|
GstStructure *structure;
|
||||||
gboolean ret = TRUE;
|
gboolean ret = TRUE;
|
||||||
gint clock_rate;
|
gint clock_rate;
|
||||||
|
GstRTPMuxPadPrivate *padpriv = gst_pad_get_element_private (pad);
|
||||||
|
|
||||||
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
|
rtp_mux = GST_RTP_MUX (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
|
@ -441,6 +442,10 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps)
|
||||||
if (!ret)
|
if (!ret)
|
||||||
goto out;
|
goto out;
|
||||||
|
|
||||||
|
if (gst_structure_get_uint (structure, "clock-base", &padpriv->clock_base)) {
|
||||||
|
padpriv->have_base = TRUE;
|
||||||
|
}
|
||||||
|
|
||||||
caps = gst_caps_make_writable (caps);
|
caps = gst_caps_make_writable (caps);
|
||||||
|
|
||||||
gst_caps_set_simple (caps,
|
gst_caps_set_simple (caps,
|
||||||
|
|
Loading…
Reference in a new issue