blob: fdfdd1b5ac0c87a2d946fa924ceb8c0e341192c0 [file] [log] [blame]
Brad Bishop316dfdd2018-06-25 12:45:53 -04001From 0d2ad639e6158c8023c157e206ef3ff7abdc089c Mon Sep 17 00:00:00 2001
Patrick Williams8b8bc412016-08-17 15:02:23 -05002From: =?UTF-8?q?Enrique=20Oca=C3=B1a=20Gonz=C3=A1lez?= <eocanha@igalia.com>
3Date: Fri, 4 Dec 2015 18:39:59 +0100
4Subject: [PATCH] Don't abort gst_omx_video_dec_set_format() if there's a
5 timeout releasing the buffers taken by the egl_render out port
6
7---
8 omx/gstomxvideodec.c | 5 ++++-
9 1 file changed, 4 insertions(+), 1 deletion(-)
10
11diff --git a/omx/gstomxvideodec.c b/omx/gstomxvideodec.c
Brad Bishop316dfdd2018-06-25 12:45:53 -040012index bad6335..c63b972 100644
Patrick Williams8b8bc412016-08-17 15:02:23 -050013--- a/omx/gstomxvideodec.c
14+++ b/omx/gstomxvideodec.c
Brad Bishop316dfdd2018-06-25 12:45:53 -040015@@ -1911,8 +1911,11 @@ gst_omx_video_dec_set_format (GstVideoDecoder * decoder,
Patrick Williams8b8bc412016-08-17 15:02:23 -050016 5 * GST_SECOND) != OMX_ErrorNone)
17 return FALSE;
18 if (gst_omx_port_wait_buffers_released (out_port,
19- 1 * GST_SECOND) != OMX_ErrorNone)
20+ 1 * GST_SECOND) != OMX_ErrorNone) {
21+#if !(defined (USE_OMX_TARGET_RPI) && defined (HAVE_GST_GL))
22 return FALSE;
23+#endif
24+ }
25 if (gst_omx_port_deallocate_buffers (self->dec_in_port) != OMX_ErrorNone)
26 return FALSE;
27 if (gst_omx_video_dec_deallocate_output_buffers (self) != OMX_ErrorNone)