gst/mpegaudioparse/gstmpegaudioparse.c: Fix "pad caps are not a real subset of its...
authorJan Schmidt <thaytan@mad.scientist.com>
Tue, 19 Jun 2007 14:40:20 +0000 (14:40 +0000)
committerJan Schmidt <thaytan@mad.scientist.com>
Tue, 19 Jun 2007 14:40:20 +0000 (14:40 +0000)
Original commit message from CVS:
* gst/mpegaudioparse/gstmpegaudioparse.c: (mp3_caps_create):
Fix "pad caps are not a real subset of its template caps" warning.

ChangeLog
gst/mpegaudioparse/gstmpegaudioparse.c

index 4571c80d30e6ff14082bfb7c5451472fc4f53aeb..4721bc4a32e8262273d3f865c916af603dbfb705 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-06-19  Jan Schmidt  <thaytan@mad.scientist.com>
+
+       * gst/mpegaudioparse/gstmpegaudioparse.c: (mp3_caps_create):
+       Fix "pad caps are not a real subset of its template caps" warning.
+
 2007-06-19  Wim Taymans  <wim@fluendo.com>
 
        Patch by: Laurent Glayal <spglegle at yahoo dot fr>
index 83ffad23080e99bf22eaa4f00e7cb48e511ecbaf..c55c6fa1e1b1a5ff08c94fc8d52a7a5bf1e37a7e 100644 (file)
@@ -218,7 +218,8 @@ mp3_caps_create (guint layer, guint channels, guint bitrate, guint samplerate)
   new = gst_caps_new_simple ("audio/mpeg",
       "mpegversion", G_TYPE_INT, 1,
       "layer", G_TYPE_INT, layer,
-      "rate", G_TYPE_INT, samplerate, "channels", G_TYPE_INT, channels, NULL);
+      "rate", G_TYPE_INT, samplerate,
+      "channels", G_TYPE_INT, channels, "parsed", G_TYPE_BOOLEAN, TRUE, NULL);
 
   return new;
 }