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
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user