From 14ea838512dbc15337c5954b99c40b5baf3a4c57 Mon Sep 17 00:00:00 2001 From: =?utf8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 7 Jun 2019 09:54:12 +0200 Subject: [PATCH] vaapidecodebin: set queue's max size buffers to 1 Otherwise the queue will swallow all the available decoder's surfaces reaching a dead-lock. This setting might impact the bin's peformance, but it's a trade-off. --- gst/vaapi/gstvaapidecodebin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/vaapi/gstvaapidecodebin.c b/gst/vaapi/gstvaapidecodebin.c index 8e4cd34..021953b 100644 --- a/gst/vaapi/gstvaapidecodebin.c +++ b/gst/vaapi/gstvaapidecodebin.c @@ -57,7 +57,7 @@ GST_DEBUG_CATEGORY_STATIC (gst_debug_vaapi_decode_bin); #define GST_CAT_DEFAULT gst_debug_vaapi_decode_bin -#define DEFAULT_QUEUE_MAX_SIZE_BUFFERS 0 +#define DEFAULT_QUEUE_MAX_SIZE_BUFFERS 1 #define DEFAULT_QUEUE_MAX_SIZE_BYTES 0 #define DEFAULT_QUEUE_MAX_SIZE_TIME 0 #define DEFAULT_DEINTERLACE_METHOD GST_VAAPI_DEINTERLACE_METHOD_BOB -- 2.7.4