[0.11] gst-plugins-ugly: dvdlpcmdec: fix for multichannel

Wim Taymans wtay at kemper.freedesktop.org
Thu Jan 5 03:17:42 PST 2012


Module: gst-plugins-ugly
Branch: 0.11
Commit: a2dee808383ff1ef3221c528fdd2be4b0bc573d5
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/commit/?id=a2dee808383ff1ef3221c528fdd2be4b0bc573d5

Author: Wim Taymans <wim.taymans at collabora.co.uk>
Date:   Thu Jan  5 12:17:20 2012 +0100

dvdlpcmdec: fix for multichannel

---

 gst/dvdlpcmdec/gstdvdlpcmdec.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/gst/dvdlpcmdec/gstdvdlpcmdec.c b/gst/dvdlpcmdec/gstdvdlpcmdec.c
index c835d83..16f2dbc 100644
--- a/gst/dvdlpcmdec/gstdvdlpcmdec.c
+++ b/gst/dvdlpcmdec/gstdvdlpcmdec.c
@@ -292,7 +292,7 @@ gst_dvdlpcmdec_setcaps (GstPad * pad, GstCaps * caps)
   if (channels < 9
       && channel_positions[channels - 1][0] !=
       GST_AUDIO_CHANNEL_POSITION_INVALID) {
-    dvdlpcmdec->info.flags &= ~GST_AUDIO_FLAG_NONE_LAYOUT;
+    dvdlpcmdec->info.flags &= ~GST_AUDIO_FLAG_UNPOSITIONED;
     position = channel_positions[channels - 1];
     dvdlpcmdec->lpcm_layout = position;
     memcpy (dvdlpcmdec->info.position, position,
@@ -412,7 +412,7 @@ parse_header (GstDvdLpcmDec * dec, guint32 header)
       GST_AUDIO_CHANNEL_POSITION_INVALID) {
     const GstAudioChannelPosition *position;
 
-    dec->info.flags &= ~GST_AUDIO_FLAG_NONE_LAYOUT;
+    dec->info.flags &= ~GST_AUDIO_FLAG_UNPOSITIONED;
     position = channel_positions[channels - 1];
     dec->lpcm_layout = position;
     memcpy (dec->info.position, position,



More information about the gstreamer-commits mailing list