mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-24 02:31:03 +00:00
Only act when the seek worked.
Original commit message from CVS: Only act when the seek worked.
This commit is contained in:
parent
f79cbfd6c2
commit
452ff33bb3
1 changed files with 3 additions and 3 deletions
|
@ -509,9 +509,6 @@ gst_mad_src_event (GstPad *pad, GstEvent *event)
|
||||||
/* shave off the flush flag, we'll need it later */
|
/* shave off the flush flag, we'll need it later */
|
||||||
flush = GST_EVENT_SEEK_FLAGS (event) & GST_SEEK_FLAG_FLUSH;
|
flush = GST_EVENT_SEEK_FLAGS (event) & GST_SEEK_FLAG_FLUSH;
|
||||||
|
|
||||||
/* we need to break out of the processing loop on flush */
|
|
||||||
mad->restart = flush;
|
|
||||||
|
|
||||||
/* assume the worst */
|
/* assume the worst */
|
||||||
res = FALSE;
|
res = FALSE;
|
||||||
|
|
||||||
|
@ -536,6 +533,9 @@ gst_mad_src_event (GstPad *pad, GstEvent *event)
|
||||||
gst_event_free (seek_event);
|
gst_event_free (seek_event);
|
||||||
}
|
}
|
||||||
/* at this point, either the seek worked or res == FALSE */
|
/* at this point, either the seek worked or res == FALSE */
|
||||||
|
if (res)
|
||||||
|
/* we need to break out of the processing loop on flush */
|
||||||
|
mad->restart = flush;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue