diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2019-06-07 09:54:12 +0200 |
---|---|---|
committer | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2020-01-09 13:39:10 +0100 |
commit | d198144727aac212b5d34093bd9bc34f12bdc559 (patch) | |
tree | 4f2e82310a5f5183eb5f8be0aff79e1542283aca | |
parent | 584cda4de8cf4b9320a6a2368e215bca3b47a393 (diff) |
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.
-rw-r--r-- | gst/vaapi/gstvaapidecodebin.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gst/vaapi/gstvaapidecodebin.c b/gst/vaapi/gstvaapidecodebin.c index d9c1679d..44dba44d 100644 --- a/gst/vaapi/gstvaapidecodebin.c +++ b/gst/vaapi/gstvaapidecodebin.c @@ -58,7 +58,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 |