summaryrefslogtreecommitdiff
path: root/gst/rtpmux
diff options
context:
space:
mode:
authorOlivier CrĂȘte <olivier.crete@collabora.co.uk>2008-08-12 12:41:59 -0400
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:48:55 +0100
commit1875f490c5a738ec5e204f6e0e8993e3fc04c399 (patch)
tree94e0c8f5b0260b00d9b100aecb07c887459c7d28 /gst/rtpmux
parent963cec94583c89a85c656b1b58eb4c05e68cec11 (diff)
[MOVED FROM GST-P-FARSIGHT] Store the clock-base on setcaps
Diffstat (limited to 'gst/rtpmux')
-rw-r--r--gst/rtpmux/gstrtpmux.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gst/rtpmux/gstrtpmux.c b/gst/rtpmux/gstrtpmux.c
index 7228dc8a4..9af27bad3 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,