[MOVED FROM GST-P-FARSIGHT] Store the clock-base on setcaps

This commit is contained in:
Olivier Crête 2008-08-12 12:41:59 -04:00 committed by Edward Hervey
parent 963cec9458
commit 1875f490c5

View file

@ -430,6 +430,7 @@ gst_rtp_mux_setcaps (GstPad *pad, GstCaps *caps)
GstStructure *structure;
gboolean ret = TRUE;
gint clock_rate;
GstRTPMuxPadPrivate *padpriv = gst_pad_get_element_private (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)
goto out;
if (gst_structure_get_uint (structure, "clock-base", &padpriv->clock_base)) {
padpriv->have_base = TRUE;
}
caps = gst_caps_make_writable (caps);
gst_caps_set_simple (caps,