v4l2videodec: Fix use of atomic value
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Fri, 23 May 2014 21:18:16 +0000 (17:18 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Sat, 24 May 2014 19:38:53 +0000 (15:38 -0400)
sys/v4l2/gstv4l2videodec.c

index 604710c..7c07749 100644 (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");