dvbsuboverlay: Don't draw anything on the video if the enable property is set to...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 15 Dec 2010 19:54:35 +0000 (20:54 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 15 Dec 2010 19:54:35 +0000 (20:54 +0100)
gst/dvbsuboverlay/gstdvbsuboverlay.c

index 6bd9565077b5b84fff8f792ac38e0e46518ac3c1..b9a1d7c42829a11330d3ebac5acd7d5a983ac173 100644 (file)
@@ -1033,7 +1033,7 @@ gst_dvbsub_overlay_chain_video (GstPad * pad, GstBuffer * buffer)
   }
 
   /* Now render it */
-  if (overlay->current_subtitle) {
+  if (g_atomic_int_get (&overlay->enable) && overlay->current_subtitle) {
     buffer = gst_buffer_make_writable (buffer);
     blit_i420 (overlay, overlay->current_subtitle, buffer);
   }