[vlc-commits] mmal/deinterlace: Don't send buffers to disabled port
Julian Scheel
git at videolan.org
Fri Jun 5 15:37:14 CEST 2015
vlc | branch: master | Julian Scheel <julian at jusst.de> | 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 <julian at jusst.de>
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> 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");
More information about the vlc-commits
mailing list