From d13b1e700368845e71e60c6d2a89f48b5d7a42dc Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Fri, 23 Jun 2006 09:28:28 +0000 Subject: [PATCH] ext/a52dec/gsta52dec.c: Treat dual-mono as stereo. It should really be output on 2 separate pads, but isn't for now. Original commit message from CVS: * ext/a52dec/gsta52dec.c: (gst_a52dec_channels), (plugin_init): Treat dual-mono as stereo. It should really be output on 2 separate pads, but isn't for now. --- ChangeLog | 6 ++++++ common | 2 +- ext/a52dec/gsta52dec.c | 4 ++-- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4fd4d49284..a45b878a01 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2006-06-23 Jan Schmidt + + * ext/a52dec/gsta52dec.c: (gst_a52dec_channels), (plugin_init): + Treat dual-mono as stereo. It should really be output on 2 separate + pads, but isn't for now. + 2006-06-19 Tim-Philipp Müller * ext/mpeg2dec/gstmpeg2dec.c: (gst_mpeg2dec_negotiate_format): diff --git a/common b/common index bbfa014696..123195d3bb 160000 --- a/common +++ b/common @@ -1 +1 @@ -Subproject commit bbfa0146961f4ca61ddbca7b42360b5741a6354b +Subproject commit 123195d3bbcc0b6e1cf867d3a180685f8766a0be diff --git a/ext/a52dec/gsta52dec.c b/ext/a52dec/gsta52dec.c index 7bd449b782..579ae5c1d5 100644 --- a/ext/a52dec/gsta52dec.c +++ b/ext/a52dec/gsta52dec.c @@ -259,7 +259,7 @@ gst_a52dec_channels (int flags, GstAudioChannelPosition ** _pos) } chans += 3; break; - /*case A52_CHANNEL: */ + case A52_CHANNEL: /* Dual mono. Should really be handled as 2 src pads */ case A52_STEREO: case A52_DOLBY: if (pos) { @@ -750,7 +750,7 @@ gst_a52dec_get_property (GObject * object, guint prop_id, GValue * value, static gboolean plugin_init (GstPlugin * plugin) { - if (!gst_element_register (plugin, "a52dec", GST_RANK_PRIMARY, + if (!gst_element_register (plugin, "a52dec", GST_RANK_SECONDARY, GST_TYPE_A52DEC)) return FALSE;