Commit 129eecf0 authored by's avatar Committed by Sebastian Dröge

souphttpsrc: Reset retry_count to 0 when GST_FLOW_FLUSHING

If a lot of seek method is called very quickly, sometimes data reading
and do_request occurs while seek flush event is occurring and error
occurs because retry_count
reaches to the max. Thus, reset retry_count if flush occurs after
do_request and read_buffer.
parent 54f31264
......@@ -1835,6 +1835,13 @@ done:
goto retry;
if (ret == GST_FLOW_FLUSHING) {
g_mutex_lock (&src->mutex);
src->retry_count = 0;
g_mutex_unlock (&src->mutex);
return ret;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment