Commit 228fcee6 authored by Julian Scheel's avatar Julian Scheel Committed by Jean-Baptiste Kempf

mmal/deinterlace: Don't send buffers to disabled port

If the port is disabled it would refuse buffers with an error anyway. Avoid
this by not sending them when the port is disabled.
Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent dd33e6f1
......@@ -356,6 +356,11 @@ static int send_output_buffer(filter_t *filter)
picture_t *picture;
int ret = 0;
if (!sys->output->is_enabled) {
ret = VLC_EGENERIC;
goto out;
}
picture = picture_pool_Get(sys->picture_pool);
if (!picture) {
msg_Warn(filter, "Failed to get new picture");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment