[gst-cvs] gst-plugins-good: gstrtpceltpay: don't always fixate sink caps to 1 channel
Wim Taymans
wtay at kemper.freedesktop.org
Sat Jun 5 01:07:17 PDT 2010
Module: gst-plugins-good
Branch: master
Commit: 8e0adba996d81b469078eeeefeeecfb772439743
URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=8e0adba996d81b469078eeeefeeecfb772439743
Author: Tristan Matthews <tristan at sat.qc.ca>
Date: Fri Jun 4 14:54:59 2010 -0400
gstrtpceltpay: don't always fixate sink caps to 1 channel
The getcaps function should not fixate the channels field until we
get the encoding-params field from our srcpad's caps. Fixes #620591
---
gst/rtp/gstrtpceltpay.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/gst/rtp/gstrtpceltpay.c b/gst/rtp/gstrtpceltpay.c
index 74fa9a9..7524a27 100644
--- a/gst/rtp/gstrtpceltpay.c
+++ b/gst/rtp/gstrtpceltpay.c
@@ -186,9 +186,10 @@ gst_rtp_celt_pay_getcaps (GstBaseRTPPayload * payload, GstPad * pad)
if (frame_size)
gst_structure_set (s, "frame-size", G_TYPE_INT, frame_size, NULL);
- if ((params = gst_structure_get_string (ps, "encoding-params")))
+ if ((params = gst_structure_get_string (ps, "encoding-params"))) {
channels = atoi (params);
- gst_structure_fixate_field_nearest_int (s, "channels", channels);
+ gst_structure_fixate_field_nearest_int (s, "channels", channels);
+ }
GST_DEBUG_OBJECT (payload, "clock-rate=%d frame-size=%d channels=%d",
clock_rate, frame_size, channels);
More information about the Gstreamer-commits
mailing list