mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-07 08:39:54 +00:00
dvbsuboverlay: Don't draw anything on the video if the enable property is set to FALSE
This commit is contained in:
parent
65598884d2
commit
a71c3f7e48
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue