[0.11] gst-plugins-good: wavparse: Update for libgstriff API changes

Sebastian Dröge slomo at kemper.freedesktop.org
Thu Jan 5 01:37:29 PST 2012


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

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Wed Jan  4 12:06:12 2012 +0100

wavparse: Update for libgstriff API changes

Still needs to handle raw audio channel reordering

---

 gst/wavparse/gstwavparse.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c
index f4f7982..e494b2f 100644
--- a/gst/wavparse/gstwavparse.c
+++ b/gst/wavparse/gstwavparse.c
@@ -516,7 +516,8 @@ gst_wavparse_fmt (GstWavParse * wav)
 
   /* Note: gst_riff_create_audio_caps might need to fix values in
    * the header header depending on the format, so call it first */
-  caps = gst_riff_create_audio_caps (header->format, NULL, header, NULL);
+  /* FIXME: Need to handle the channel reorder map */
+  caps = gst_riff_create_audio_caps (header->format, NULL, header, NULL, NULL);
   g_free (header);
 
   if (caps == NULL)
@@ -1179,8 +1180,9 @@ gst_wavparse_stream_headers (GstWavParse * wav)
 
     /* Note: gst_riff_create_audio_caps might need to fix values in
      * the header header depending on the format, so call it first */
+    /* FIXME: Need to handle the channel reorder map */
     caps = gst_riff_create_audio_caps (header->format, NULL, header, extra,
-        NULL, &codec_name);
+        NULL, &codec_name, NULL);
 
     if (extra)
       gst_buffer_unref (extra);



More information about the gstreamer-commits mailing list