... and reset it properly after flushing is done. Fixes playback
in many cases when buffering is used.
https://bugzilla.gnome.org/show_bug.cgi?id=727821
do {
if (src->interrupted) {
GST_DEBUG_OBJECT (src, "interrupted");
+ src->ret = GST_FLOW_FLUSHING;
break;
}
if (src->retry) {
GST_DEBUG_OBJECT (src, "unlock()");
src->interrupted = TRUE;
+ src->ret = GST_FLOW_FLUSHING;
if (src->loop)
g_main_loop_quit (src->loop);
g_cond_signal (&src->request_finished_cond);
GST_DEBUG_OBJECT (src, "unlock_stop()");
src->interrupted = FALSE;
+ src->ret = GST_FLOW_OK;
return TRUE;
}