vlc | branch: master | Julian Scheel <[email protected]> | Wed Jun 3 09:37:33 2015 +0200| [228fcee6272ee1dda9c9b9331ad84a07a4aad4bf] | committer: 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: Julian Scheel <[email protected]> Signed-off-by: Jean-Baptiste Kempf <[email protected]> > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=228fcee6272ee1dda9c9b9331ad84a07a4aad4bf --- modules/hw/mmal/deinterlace.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/hw/mmal/deinterlace.c b/modules/hw/mmal/deinterlace.c index 7a71b1e..d8e3172 100644 --- a/modules/hw/mmal/deinterlace.c +++ b/modules/hw/mmal/deinterlace.c @@ -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"); _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
