diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-03 12:01:16 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2009-11-03 13:03:26 +0100 |
commit | dd55311f3b71e9171cb265a77ed984f42202fbd0 (patch) | |
tree | f51d06dc2d167bbb1105d8cbc38de4e98ef17750 | |
parent | 0285d77d9663782657f68293d69357740f1b7adb (diff) |
uridecodebin: Initialize caps property with the default raw caps
-rw-r--r-- | gst/playback/gsturidecodebin.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gst/playback/gsturidecodebin.c b/gst/playback/gsturidecodebin.c index a60e2f09c..524a5bdee 100644 --- a/gst/playback/gsturidecodebin.c +++ b/gst/playback/gsturidecodebin.c @@ -36,6 +36,7 @@ #include "gstfactorylists.h" #include "gstplay-marshal.h" #include "gstplay-enum.h" +#include "gstrawcaps.h" #define GST_TYPE_URI_DECODE_BIN \ (gst_uri_decode_bin_get_type()) @@ -124,6 +125,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src%d", GST_PAD_SOMETIMES, GST_STATIC_CAPS_ANY); +static GstStaticCaps default_raw_caps = GST_STATIC_CAPS (DEFAULT_RAW_CAPS); + GST_DEBUG_CATEGORY_STATIC (gst_uri_decode_bin_debug); #define GST_CAT_DEFAULT gst_uri_decode_bin_debug @@ -148,7 +151,7 @@ enum #define DEFAULT_PROP_URI NULL #define DEFAULT_PROP_SOURCE NULL #define DEFAULT_CONNECTION_SPEED 0 -#define DEFAULT_CAPS NULL +#define DEFAULT_CAPS (gst_static_caps_get (&default_raw_caps)) #define DEFAULT_SUBTITLE_ENCODING NULL #define DEFAULT_BUFFER_DURATION -1 #define DEFAULT_BUFFER_SIZE -1 |