From 1875f490c5a738ec5e204f6e0e8993e3fc04c399 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Olivier=20Cr=C3=AAte?= <olivier.crete@collabora.co.uk>
Date: Tue, 12 Aug 2008 12:41:59 -0400
Subject: [PATCH] [MOVED FROM GST-P-FARSIGHT] Store the clock-base on setcaps

---
 gst/rtpmux/gstrtpmux.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 7228dc8a4a..9af27bad36 100644
--- a/gst/rtpmux/gstrtpmux.c
+++ b/gst/rtpmux/gstrtpmux.c
@@ -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,