projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90264b9
)
rtpmux: Store the clock-base on setcaps
author
Olivier Crête
<olivier.crete@collabora.co.uk>
Tue, 12 Aug 2008 16:41:59 +0000
(12:41 -0400)
committer
Tim-Philipp Müller
<tim@centricular.net>
Sun, 16 Dec 2012 16:32:15 +0000
(16:32 +0000)
gst/rtpmanager/gstrtpmux.c
patch
|
blob
|
history
diff --git
a/gst/rtpmanager/gstrtpmux.c
b/gst/rtpmanager/gstrtpmux.c
index
7228dc8
..
9af27ba
100644
(file)
--- a/
gst/rtpmanager/gstrtpmux.c
+++ b/
gst/rtpmanager/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,