v4l2videodec: Don't drain if processing thread is inactive

This commit is contained in:
Nicolas Dufresne 2014-03-11 14:01:27 -04:00
parent 2a7abc98db
commit 6f48c74f2a

View file

@ -288,7 +288,7 @@ gst_v4l2_video_dec_finish (GstVideoDecoder * decoder)
GstFlowReturn ret = GST_FLOW_OK;
GstBuffer *buffer;
if (!self->input_state)
if (!self->processing)
goto done;
GST_DEBUG_OBJECT (self, "Finishing decoding");