From: <sl...@ke...> - 2010-12-15 19:55:27
|
Module: gst-plugins-bad Branch: master Commit: a71c3f7e483209699811f9e9bc2da9479e7f997d URL: http://cgit.freedesktop.org/gstreamer/gst-plugins-bad/commit/?id=a71c3f7e483209699811f9e9bc2da9479e7f997d Author: Sebastian Dröge <seb...@co...> Date: Wed Dec 15 20:54:35 2010 +0100 dvbsuboverlay: Don't draw anything on the video if the enable property is set to FALSE --- gst/dvbsuboverlay/gstdvbsuboverlay.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/gst/dvbsuboverlay/gstdvbsuboverlay.c b/gst/dvbsuboverlay/gstdvbsuboverlay.c index 6bd9565..b9a1d7c 100644 --- a/gst/dvbsuboverlay/gstdvbsuboverlay.c +++ b/gst/dvbsuboverlay/gstdvbsuboverlay.c @@ -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); } |