[vlc-devel] [PATCH 6/8] mmal/deinterlace: Don't send buffers to disabled port
Julian Scheel
julian at jusst.de
Wed Jun 3 09:37:33 CEST 2015
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>
---
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");
--
2.4.0
More information about the vlc-devel
mailing list