rawparse: fix duplicated format in handle_seek_pull
authorJimmy Ohn <yongjin.ohn@lge.com>
Tue, 4 Aug 2015 12:32:53 +0000 (21:32 +0900)
committerThiago Santos <thiagoss@osg.samsung.com>
Tue, 4 Aug 2015 15:29:40 +0000 (12:29 -0300)
GstFormat variable are duplicated in handle_seek_pull function.
So we need to move this variable in condition statement.

https://bugzilla.gnome.org/show_bug.cgi?id=753243

gst/rawparse/gstrawparse.c

index ad2607b..0308890 100644 (file)
@@ -810,14 +810,13 @@ gst_raw_parse_handle_seek_pull (GstRawParse * rp, GstEvent * event)
 
     GST_DEBUG_OBJECT (rp, "converted start - stop to time");
 
-    format = GST_FORMAT_TIME;
-
     gst_event_unref (event);
   } else {
-    format = GST_FORMAT_TIME;
     flags = 0;
   }
 
+  format = GST_FORMAT_TIME;
+
   flush = ((flags & GST_SEEK_FLAG_FLUSH) != 0);
 
   /* start flushing up and downstream so that the loop function pauses and we