Commit d1206381 authored by Song Bing's avatar Song Bing Committed by Nicolas Dufresne

v4l2videodec: Check stop in flush() to avoid race condition.

Backward playback will drain and flush every frame. Stop playback
when backward playback have race condition between exit thread and
streaming thread flush. Add one check to avoid it.

Fixes #639
parent 1b752c0f
Pipeline #69936 passed with stages
in 44 minutes and 53 seconds
......@@ -310,6 +310,9 @@ gst_v4l2_video_dec_flush (GstVideoDecoder * decoder)
GST_VIDEO_DECODER_STREAM_LOCK (decoder);
}
if (G_UNLIKELY (!g_atomic_int_get (&self->active)))
return TRUE;
self->output_flow = GST_FLOW_OK;
gst_v4l2_object_unlock_stop (self->v4l2output);
......
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