rtpmux: Store the clock-base on setcaps
authorOlivier Crête <olivier.crete@collabora.co.uk>
Tue, 12 Aug 2008 16:41:59 +0000 (12:41 -0400)
committerTim-Philipp Müller <tim@centricular.net>
Sun, 16 Dec 2012 16:32:15 +0000 (16:32 +0000)
gst/rtpmanager/gstrtpmux.c

index 7228dc8..9af27ba 100644 (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,