playback: add ANY caps features to default audio/video raw caps
authorMatthieu Bouron <matthieu.bouron@collabora.com>
Tue, 10 Dec 2013 15:19:14 +0000 (15:19 +0000)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 30 Dec 2013 10:25:49 +0000 (11:25 +0100)
Allows elements using audio/video caps features to be used by playbin.

gst/playback/gstplaybin2.c
gst/playback/gstrawcaps.h

index 1805437..f78fbad 100644 (file)
@@ -589,8 +589,8 @@ enum
   LAST_SIGNAL
 };
 
-static GstStaticCaps raw_audio_caps = GST_STATIC_CAPS ("audio/x-raw");
-static GstStaticCaps raw_video_caps = GST_STATIC_CAPS ("video/x-raw");
+static GstStaticCaps raw_audio_caps = GST_STATIC_CAPS ("audio/x-raw(ANY)");
+static GstStaticCaps raw_video_caps = GST_STATIC_CAPS ("video/x-raw(ANY)");
 
 static void gst_play_bin_class_init (GstPlayBinClass * klass);
 static void gst_play_bin_init (GstPlayBin * playbin);
index 65e1514..278c907 100644 (file)
@@ -26,8 +26,8 @@
 G_BEGIN_DECLS
 
 #define DEFAULT_RAW_CAPS \
-    "video/x-raw; " \
-    "audio/x-raw; " \
+    "video/x-raw(ANY); " \
+    "audio/x-raw(ANY); " \
     "text/x-raw; " \
     "subpicture/x-dvd; " \
     "subpicture/x-dvb; " \