v4l2videodec: Fix use of atomic value

This commit is contained in:
Nicolas Dufresne 2014-05-23 17:18:16 -04:00 committed by Nicolas Dufresne
parent 45b322c2db
commit c9dcc63eb8

View file

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