[gst-cvs] gst-plugins-base: uridecodebin: Initialize caps property with the default raw caps

Sebastian Dröge slomo at kemper.freedesktop.org
Tue Nov 3 04:04:21 PST 2009


Module: gst-plugins-base
Branch: master
Commit: dd55311f3b71e9171cb265a77ed984f42202fbd0
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=dd55311f3b71e9171cb265a77ed984f42202fbd0

Author: Sebastian Dröge <sebastian.droege at collabora.co.uk>
Date:   Tue Nov  3 12:01:16 2009 +0100

uridecodebin: Initialize caps property with the default raw caps

---

 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 a60e2f0..524a5bd 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





More information about the Gstreamer-commits mailing list