summaryrefslogtreecommitdiff
path: root/gst
diff options
context:
space:
mode:
authorJimmy Ohn <yongjin.ohn@lge.com>2015-08-04 21:32:53 +0900
committerThiago Santos <thiagoss@osg.samsung.com>2015-08-04 12:29:40 -0300
commitbe714c7441ad4c5ec7f1162d1d659109623abbe9 (patch)
tree5a286d0b4654e62b29e098b622d9b4af13741844 /gst
parent0e70f8c94f7fc64774fb8246626d4f11979c99ff (diff)
downloadgstreamer-plugins-bad-be714c7441ad4c5ec7f1162d1d659109623abbe9.tar.gz
rawparse: fix duplicated format in handle_seek_pull
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
Diffstat (limited to 'gst')
-rw-r--r--gst/rawparse/gstrawparse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/gst/rawparse/gstrawparse.c b/gst/rawparse/gstrawparse.c
index ad2607b60..03088902c 100644
--- a/gst/rawparse/gstrawparse.c
+++ b/gst/rawparse/gstrawparse.c
@@ -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