[totem] gst: Fix possible use before set in pixbuf



commit 23bbdadef31932dc187492038929e81f36479278
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Aug 1 20:00:50 2012 +0200

    gst: Fix possible use before set in pixbuf

 src/gst/totem-gst-pixbuf-helpers.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gst/totem-gst-pixbuf-helpers.c b/src/gst/totem-gst-pixbuf-helpers.c
index a39ac39..37bb493 100644
--- a/src/gst/totem-gst-pixbuf-helpers.c
+++ b/src/gst/totem-gst-pixbuf-helpers.c
@@ -46,7 +46,7 @@ totem_gst_playbin_get_frame (GstElement *play)
 {
   GstStructure *s;
   GstSample *sample = NULL;
-  GdkPixbuf *pixbuf;
+  GdkPixbuf *pixbuf = NULL;
   GstCaps *to_caps, *sample_caps;
   gint outwidth = 0;
   gint outheight = 0;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]