[0.11] gst-plugins-good: jitterbuffer: fix caps after pt change
Wim Taymans
wtay at kemper.freedesktop.org
Mon Feb 6 04:31:35 PST 2012
Module: gst-plugins-good
Branch: 0.11
Commit: ed8c0b7f63b5a1a7d1966becb1dc3ccb1eb893bd
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=ed8c0b7f63b5a1a7d1966becb1dc3ccb1eb893bd
Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date: Mon Feb 6 09:23:07 2012 +0100
jitterbuffer: fix caps after pt change
---
gst/rtpmanager/gstrtpjitterbuffer.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/gst/rtpmanager/gstrtpjitterbuffer.c b/gst/rtpmanager/gstrtpjitterbuffer.c
index ffbe2a5..eefc28c 100644
--- a/gst/rtpmanager/gstrtpjitterbuffer.c
+++ b/gst/rtpmanager/gstrtpjitterbuffer.c
@@ -1287,14 +1287,13 @@ gst_rtp_jitter_buffer_chain (GstPad * pad, GstObject * parent,
priv->last_pt = pt;
/* reset clock-rate so that we get a new one */
priv->clock_rate = -1;
-#if 0
GstCaps *caps;
/* Try to get the clock-rate from the caps first if we can. If there are no
* caps we must fire the signal to get the clock-rate. */
- if ((caps = GST_BUFFER_CAPS (buffer))) {
+ if ((caps = gst_pad_get_current_caps (pad))) {
gst_jitter_buffer_sink_parse_caps (jitterbuffer, caps);
+ gst_caps_unref (caps);
}
-#endif
}
if (G_UNLIKELY (priv->clock_rate == -1)) {
More information about the gstreamer-commits
mailing list