dvbsuboverlay: Don't draw anything on the video if the enable property is set to FALSE

This commit is contained in:
Sebastian Dröge 2010-12-15 20:54:35 +01:00
parent 65598884d2
commit a71c3f7e48

View File

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