encodebin: fix compiler warning
authorLuis de Bethencourt <luis@debethencourt.com>
Thu, 30 Jun 2011 18:33:36 +0000 (20:33 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Thu, 30 Jun 2011 18:57:22 +0000 (19:57 +0100)
cspace and cspace2 may run uninitialized.

gst/encoding/gstencodebin.c

index 446f93b..dd50ac1 100644 (file)
@@ -1262,7 +1262,7 @@ _create_stream_group (GstEncodeBin * ebin, GstEncodingProfile * sprof,
   /* FIXME : Once we have properties for specific converters, use those */
   if (GST_IS_ENCODING_VIDEO_PROFILE (sprof)) {
     const gboolean native_video = ! !(ebin->flags & GST_ENC_FLAG_NATIVE_VIDEO);
-    GstElement *cspace, *scale, *vrate, *cspace2;
+    GstElement *cspace = NULL, *scale, *vrate, *cspace2 = NULL;
 
     GST_LOG ("Adding conversion elements for video stream");