ffmpeg: Put the new layout field in raw audio caps
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 9 Jan 2012 12:40:05 +0000 (13:40 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Mon, 9 Jan 2012 12:40:05 +0000 (13:40 +0100)
ext/ffmpeg/gstffmpegcodecmap.c

index ea104a336b29a7993dfd5bef6da63cff05e94b41..adc89ec5954106cac2bcc8ef3a0a2fad53f5b306 100644 (file)
@@ -1324,7 +1324,8 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
       }
 
       caps = gst_ff_aud_caps_new (context, codec_id, "audio/x-raw",
-          "format", G_TYPE_STRING, gst_audio_format_to_string (format), NULL);
+          "format", G_TYPE_STRING, gst_audio_format_to_string (format),
+          "layout", G_TYPE_STRING, "interleaved", NULL);
     }
       break;
 
@@ -1814,7 +1815,8 @@ gst_ffmpeg_smpfmt_to_caps (enum SampleFormat sample_fmt,
 
   if (format != GST_AUDIO_FORMAT_UNKNOWN) {
     caps = gst_ff_aud_caps_new (context, codec_id, "audio/x-raw",
-        "format", G_TYPE_STRING, gst_audio_format_to_string (format), NULL);
+        "format", G_TYPE_STRING, gst_audio_format_to_string (format),
+        "layout", G_TYPE_STRING, "interleaved", NULL);
     GST_LOG ("caps for sample_fmt=%d: %" GST_PTR_FORMAT, sample_fmt, caps);
   } else {
     GST_LOG ("No caps found for sample_fmt=%d", sample_fmt);