From 98e0dec7151bb8798c783f43bc2b963ce1089c51 Mon Sep 17 00:00:00 2001 From: Matthieu Bouron Date: Tue, 10 Dec 2013 15:19:14 +0000 Subject: [PATCH] playback: add ANY caps features to default audio/video raw caps Allows elements using audio/video caps features to be used by playbin. --- gst/playback/gstplaybin2.c | 4 ++-- gst/playback/gstrawcaps.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gst/playback/gstplaybin2.c b/gst/playback/gstplaybin2.c index 1805437..f78fbad 100644 --- a/gst/playback/gstplaybin2.c +++ b/gst/playback/gstplaybin2.c @@ -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); diff --git a/gst/playback/gstrawcaps.h b/gst/playback/gstrawcaps.h index 65e1514..278c907 100644 --- a/gst/playback/gstrawcaps.h +++ b/gst/playback/gstrawcaps.h @@ -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; " \ -- 2.7.4