baseparse: fix seekstop

See #653137
This commit is contained in:
Koop Mast 2011-06-22 17:05:27 +02:00 committed by Wim Taymans
parent 4fe5dd2b9d
commit ef1b2b0e8f

View file

@ -3742,7 +3742,7 @@ gst_base_parse_handle_seek (GstBaseParse * parse, GstEvent * event)
seek event (in bytes) to upstream. Segment / flush handling happens seek event (in bytes) to upstream. Segment / flush handling happens
in corresponding src event handlers */ in corresponding src event handlers */
GST_DEBUG_OBJECT (parse, "seek in PUSH mode"); GST_DEBUG_OBJECT (parse, "seek in PUSH mode");
if (seekstop >= 0 && seekpos <= seekpos) if (seekstop >= 0 && seekstop <= seekpos)
seekstop = seekpos; seekstop = seekpos;
new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flush, new_event = gst_event_new_seek (rate, GST_FORMAT_BYTES, flush,
GST_SEEK_TYPE_SET, seekpos, stop_type, seekstop); GST_SEEK_TYPE_SET, seekpos, stop_type, seekstop);