commit 6390df31953b59f1bb826472df05b21a9429e748
Author: Lubosz Sarnecki <lubosz@gmail.com>
Date:   Mon Nov 25 18:53:44 2013 +0100

    pngparse: don't set uninitialized ints as framerate caps

diff --git a/gst/videoparsers/gstpngparse.c b/gst/videoparsers/gstpngparse.c
index 7c53f15..ab3cb90 100644
--- a/gst/videoparsers/gstpngparse.c
+++ b/gst/videoparsers/gstpngparse.c
@@ -163,20 +163,27 @@ gst_png_parse_handle_frame (GstBaseParse * parse,
       if (pngparse->width != width || pngparse->height != height) {
         GstStructure *st = NULL;
         GstCaps *caps, *sink_caps;
-        gint fr_num, fr_denom;
+        gint fr_num = 1, fr_denom = 1;
 
         pngparse->height = height;
         pngparse->width = width;
 
         sink_caps =
             gst_pad_get_current_caps (GST_BASE_PARSE_SINK_PAD (pngparse));
-        if (sink_caps && (st = gst_caps_get_structure (sink_caps, 0))
-            && gst_structure_get_fraction (st, "framerate", &fr_num, &fr_denom)) {
-          /* Got it in caps - nothing more to do */
-          GST_DEBUG_OBJECT (pngparse,
-              "sink caps override framerate from headers");
+
+        if (sink_caps) {
+          st = gst_caps_get_structure (sink_caps, 0);
+          if (st
+              && gst_structure_get_fraction (st, "framerate", &fr_num,
+                  &fr_denom)) {
+            /* Got it in caps - nothing more to do */
+            GST_DEBUG_OBJECT (pngparse,
+                "sink caps override framerate from headers");
+          } else {
+            GST_WARNING_OBJECT (pngparse, "No framerate set");
+          }
         } else {
-          GST_INFO_OBJECT (pngparse, "No framerate set");
+          GST_WARNING ("Could not read sink caps\n");
         }
 
         caps = gst_caps_new_simple ("image/png",
