Don't use v4lsrc before initializing it.
authorWim Taymans <wim.taymans@gmail.com>
Sun, 20 Jan 2002 12:27:11 +0000 (12:27 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sun, 20 Jan 2002 12:27:11 +0000 (12:27 +0000)
Original commit message from CVS:
Don't use v4lsrc before initializing it.

sys/v4l/gstv4lsrc.c

index 4eb9874..2915588 100644 (file)
@@ -178,10 +178,12 @@ gst_v4lsrc_srcconnect (GstPad  *pad,
 {
   GstV4lSrc *v4lsrc;
   GstCaps *caps, *newcaps;
-  gint palette = v4lsrc->palette;
+  gint palette;
 
   v4lsrc = GST_V4LSRC (gst_pad_get_parent (pad));
 
+  palette = v4lsrc->palette;
+
   /* TODO: caps = gst_caps_normalize(capslist); */
   for (caps = vscapslist ; caps != NULL ; caps = vscapslist = vscapslist->next)
   {