
Thread 52 (Thread 0x7fff96491700 (LWP 4966)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c46d91 in gst_vaapi_get_config_attribute (display=0x555555ab2090 [GstVaapiDisplayDRM], profile=VAProfileH264Main, entrypoint=entrypoint@entry=VAEntrypointEncSlice, type=type@entry=VAConfigAttribRTFormat, out_value_ptr=out_value_ptr@entry=0x7fff9649071c)
    at gstvaapiutils_core.c:65
#3  0x00007ffff2c5234f in get_default_chroma_type (cip=0x7fff96490740, cip=0x7fff96490740, encoder=0x555555b2c0f0)
    at gstvaapiencoder.c:712
#4  0x00007ffff2c5234f in init_context_info (encoder=encoder@entry=0x555555b2c0f0, cip=cip@entry=0x7fff96490740, profile=<optimized out>) at gstvaapiencoder.c:736
#5  0x00007ffff2c523f6 in create_test_context_config (encoder=encoder@entry=0x555555b2c0f0, profile=<optimized out>, 
    profile@entry=GST_VAAPI_PROFILE_H264_MAIN) at gstvaapiencoder.c:1373
#6  0x00007ffff2c53e3b in get_profile_surface_formats (profile=GST_VAAPI_PROFILE_H264_MAIN, encoder=0x555555b2c0f0)
    at gstvaapiencoder.c:1384
#7  0x00007ffff2c53e3b in merge_profile_surface_formats (formats=0x7fff8c002be0, profile=GST_VAAPI_PROFILE_H264_MAIN, encoder=0x555555b2c0f0) at gstvaapiencoder.c:1403
#8  0x00007ffff2c53e3b in gst_vaapi_encoder_get_surface_formats (encoder=0x555555b2c0f0, profile=GST_VAAPI_PROFILE_H264_MAIN, 
    profile@entry=GST_VAAPI_PROFILE_UNKNOWN) at gstvaapiencoder.c:1452
#9  0x00007ffff2c23b1d in ensure_allowed_sinkpad_caps (encode=0x55555596dc70) at gstvaapiencode.c:377
#10 0x00007ffff2c23b1d in gst_vaapiencode_get_caps (venc=0x55555596dc70 [GstVaapiEncodeH264], filter=0x7fff8c001680)
    at gstvaapiencode.c:425
#11 0x00007ffff478026a in gst_video_encoder_sink_getcaps (filter=<optimized out>, encoder=0x55555596dc70 [GstVaapiEncodeH264])
    at gstvideoencoder.c:656
#12 0x00007ffff478026a in gst_video_encoder_sink_query_default (encoder=0x55555596dc70 [GstVaapiEncodeH264], query=0x7fff8c002b00)
    at gstvideoencoder.c:765
#13 0x00007ffff746c4f8 in gst_pad_query (pad=pad@entry=0x55555596e180 [GstPad], query=query@entry=0x7fff8c002b00) at gstpad.c:3950
#14 0x00007ffff746cad1 in gst_pad_peer_query (pad=pad@entry=0x555555971210 [GstPad], query=query@entry=0x7fff8c002b00)
    at gstpad.c:4082
#15 0x00007ffff74a7754 in gst_pad_peer_query_caps (pad=pad@entry=0x555555971210 [GstPad], filter=filter@entry=0x7fff8c001680)
    at gstutils.c:3063
#16 0x00007ffff5c0d615 in gst_base_transform_query_caps (filter=0x555555815370, pad=0x555555970df0 [GstPad], trans=0x555555970b50 [GstCapsFilter]) at gstbasetransform.c:669
#17 0x00007ffff5c0d615 in gst_base_transform_default_query (trans=0x555555970b50 [GstCapsFilter], direction=<optimized out>, query=0x7fff8c001360) at gstbasetransform.c:1532
#18 0x00007ffff746c4f8 in gst_pad_query (pad=pad@entry=0x555555970df0 [GstPad], query=query@entry=0x7fff8c001360) at gstpad.c:3950
#19 0x00007ffff746cad1 in gst_pad_peer_query (pad=pad@entry=0x55555596d510 [GstPad], query=query@entry=0x7fff8c001360)
    at gstpad.c:4082
#20 0x00007ffff74a7754 in gst_pad_peer_query_caps (pad=0x55555596d510 [GstPad], filter=filter@entry=0x555555815370) at gstutils.c:3063
#21 0x00007ffff5c067b0 in gst_base_src_default_negotiate (basesrc=0x55555596d0c0 [GstVideoTestSrc]) at gstbasesrc.c:3267
#22 0x00007ffff5c03f68 in gst_base_src_negotiate (basesrc=0x55555596d0c0 [GstVideoTestSrc]) at gstbasesrc.c:3331
#23 0x00007ffff5c03f68 in gst_base_src_loop (pad=0x55555596d510 [GstPad]) at gstbasesrc.c:2761
#24 0x00007ffff7499551 in gst_task_func (task=0x555555b2d020 [GstTask]) at gsttask.c:332
#25 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#26 0x00007ffff6f194f5 in g_thread_proxy (data=0x555555b2d1c0) at ././glib/gthread.c:784
#27 0x00007ffff6c91494 in start_thread (arg=0x7fff96491700) at pthread_create.c:333
#28 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 51 (Thread 0x7fff97248700 (LWP 4965)):
#0  0x00007ffff61331e9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6f376fa in g_cond_wait_until (cond=cond@entry=0x555555abe738, mutex=mutex@entry=0x555555abe730, end_time=end_time@entry=7484686855) at ././glib/gthread-posix.c:1442
#2  0x00007ffff6ec5f49 in g_async_queue_pop_intern_unlocked (queue=queue@entry=0x555555abe730, wait=wait@entry=1, end_time=end_time@entry=7484686855) at ././glib/gasyncqueue.c:422
#3  0x00007ffff6ec656c in g_async_queue_timeout_pop (queue=0x555555abe730, timeout=timeout@entry=50000) at ././glib/gasyncqueue.c:543
#4  0x00007ffff2c52bd6 in gst_vaapi_encoder_get_buffer_with_timeout (encoder=<optimized out>, out_codedbuf_proxy_ptr=out_codedbuf_proxy_ptr@entry=0x7fff97247cb0, timeout=timeout@entry=50000) at gstvaapiencoder.c:467
#5  0x00007ffff2c23434 in gst_vaapiencode_push_frame (encode=encode@entry=0x5555559696e0, timeout=timeout@entry=50000)
    at gstvaapiencode.c:275
#6  0x00007ffff2c2383e in gst_vaapiencode_buffer_loop (encode=0x5555559696e0) at gstvaapiencode.c:341
#7  0x00007ffff7499551 in gst_task_func (task=0x7fff9c017be0 [GstTask]) at gsttask.c:332
#8  0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#9  0x00007ffff6f194f5 in g_thread_proxy (data=0x7fff9c017a30) at ././glib/gthread.c:784
#10 0x00007ffff6c91494 in start_thread (arg=0x7fff97248700) at pthread_create.c:333
#11 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 50 (Thread 0x7fff97e1f700 (LWP 4964)):
#0  0x00007ffff61331e9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6f376fa in g_cond_wait_until (cond=cond@entry=0x555555abe788, mutex=mutex@entry=0x555555abe780, end_time=end_time@entry=7484673655) at ././glib/gthread-posix.c:1442
#2  0x00007ffff6ec5f49 in g_async_queue_pop_intern_unlocked (queue=queue@entry=0x555555abe780, wait=wait@entry=1, end_time=end_time@entry=7484673655) at ././glib/gasyncqueue.c:422
#3  0x00007ffff6ec656c in g_async_queue_timeout_pop (queue=0x555555abe780, timeout=timeout@entry=50000) at ././glib/gasyncqueue.c:543
#4  0x00007ffff2c52bd6 in gst_vaapi_encoder_get_buffer_with_timeout (encoder=<optimized out>, out_codedbuf_proxy_ptr=out_codedbuf_proxy_ptr@entry=0x7fff97e1ecb0, timeout=timeout@entry=50000) at gstvaapiencoder.c:467
#5  0x00007ffff2c23434 in gst_vaapiencode_push_frame (encode=encode@entry=0x555555a7e560, timeout=timeout@entry=50000)
    at gstvaapiencode.c:275
#6  0x00007ffff2c2383e in gst_vaapiencode_buffer_loop (encode=0x555555a7e560) at gstvaapiencode.c:341
#7  0x00007ffff7499551 in gst_task_func (task=0x7fffb4017fe0 [GstTask]) at gsttask.c:332
#8  0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#9  0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffb4017e30) at ././glib/gthread.c:784
#10 0x00007ffff6c91494 in start_thread (arg=0x7fff97e1f700) at pthread_create.c:333
#11 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 49 (Thread 0x7fffacc23700 (LWP 4963)):
#0  0x00007ffff61331e9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6f376fa in g_cond_wait_until (cond=cond@entry=0x555555aba6f8, mutex=mutex@entry=0x555555aba6f0, end_time=end_time@entry=7484693622) at ././glib/gthread-posix.c:1442
#2  0x00007ffff6ec5f49 in g_async_queue_pop_intern_unlocked (queue=queue@entry=0x555555aba6f0, wait=wait@entry=1, end_time=end_time@entry=7484693622) at ././glib/gasyncqueue.c:422
#3  0x00007ffff6ec656c in g_async_queue_timeout_pop (queue=0x555555aba6f0, timeout=timeout@entry=50000) at ././glib/gasyncqueue.c:543
#4  0x00007ffff2c52bd6 in gst_vaapi_encoder_get_buffer_with_timeout (encoder=<optimized out>, out_codedbuf_proxy_ptr=out_codedbuf_proxy_ptr@entry=0x7fffacc22cb0, timeout=timeout@entry=50000) at gstvaapiencoder.c:467
#5  0x00007ffff2c23434 in gst_vaapiencode_push_frame (encode=encode@entry=0x555555a7a000, timeout=timeout@entry=50000)
    at gstvaapiencode.c:275
#6  0x00007ffff2c2383e in gst_vaapiencode_buffer_loop (encode=0x555555a7a000) at gstvaapiencode.c:341
#7  0x00007ffff7499551 in gst_task_func (task=0x7fffb0017ea0 [GstTask]) at gsttask.c:332
#8  0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#9  0x00007ffff6f194f5 in g_thread_proxy (data=0x555555ab3d10) at ././glib/gthread.c:784
#10 0x00007ffff6c91494 in start_thread (arg=0x7fffacc23700) at pthread_create.c:333
#11 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 48 (Thread 0x7fffad424700 (LWP 4962)):
#0  0x00007fffee44ae6d in vlVaEndPicture (ctx=<optimized out>, context_id=<optimized out>) at picture.c:596
#1  0x00007ffff238aeaf in vaEndPicture () at /usr/lib/x86_64-linux-gnu/libva.so.1
#2  0x00007ffff2c62039 in gst_vaapi_enc_picture_encode (picture=picture@entry=0x7fff9c1fa320) at gstvaapiencoder_objects.c:581
#3  0x00007ffff2c5bf08 in gst_vaapi_encoder_h264_encode (base_encoder=<optimized out>, picture=0x7fff9c1fa320, codedbuf=<optimized out>) at gstvaapiencoder_h264.c:2581
#4  0x00007ffff2c529c9 in gst_vaapi_encoder_put_frame (encoder=0x555555ab2e60, frame=<optimized out>, frame@entry=0x7fff9c1fa0c0)
    at gstvaapiencoder.c:407
#5  0x00007ffff2c23eca in gst_vaapiencode_handle_frame (venc=0x5555559696e0 [GstVaapiEncodeH264], frame=0x7fff9c1fa0c0)
    at gstvaapiencode.c:643
#6  0x00007ffff477fc1f in gst_video_encoder_chain (pad=<optimized out>, parent=<optimized out>, buf=<optimized out>)
    at gstvideoencoder.c:1438
#7  0x00007ffff7465f52 in gst_pad_chain_data_unchecked (data=0x7fff9c0188f0, type=4112, pad=0x555555969bf0 [GstPad]) at gstpad.c:4205
#8  0x00007ffff7465f52 in gst_pad_push_data (pad=pad@entry=0x55555596cc30 [GstPad], type=type@entry=4112, data=<optimized out>, 
    data@entry=0x7fff9c0188f0) at gstpad.c:4457
#9  0x00007ffff746e3e2 in gst_pad_push (pad=0x55555596cc30 [GstPad], buffer=0x7fff9c0188f0) at gstpad.c:4576
#10 0x00007ffff5c0b1fa in gst_base_transform_chain (pad=<optimized out>, parent=<optimized out>, buffer=<optimized out>)
    at gstbasetransform.c:2312
#11 0x00007ffff7465f52 in gst_pad_chain_data_unchecked (data=0x7fff9c0188f0, type=4112, pad=0x55555596c810 [GstPad]) at gstpad.c:4205
#12 0x00007ffff7465f52 in gst_pad_push_data (pad=pad@entry=0x555555968ff0 [GstPad], type=type@entry=4112, data=<optimized out>, 
    data@entry=0x7fff9c0188f0) at gstpad.c:4457
#13 0x00007ffff746e3e2 in gst_pad_push (pad=pad@entry=0x555555968ff0 [GstPad], buffer=0x7fff9c0188f0) at gstpad.c:4576
#14 0x00007ffff5c04275 in gst_base_src_loop (pad=0x555555968ff0 [GstPad]) at gstbasesrc.c:2913
#15 0x00007ffff7499551 in gst_task_func (task=0x555555ab3b70 [GstTask]) at gsttask.c:332
#16 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#17 0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffb0017cf0) at ././glib/gthread.c:784
#18 0x00007ffff6c91494 in start_thread (arg=0x7fffad424700) at pthread_create.c:333
#19 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 47 (Thread 0x7fffade05700 (LWP 4961)):
#0  0x00007ffff61331e9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6f376fa in g_cond_wait_until (cond=cond@entry=0x5555557752a8, mutex=mutex@entry=0x5555557752a0, end_time=end_time@entry=7485090290) at ././glib/gthread-posix.c:1442
#2  0x00007ffff6ec5f49 in g_async_queue_pop_intern_unlocked (queue=0x5555557752a0, wait=wait@entry=1, end_time=7485090290)
    at ././glib/gasyncqueue.c:422
#3  0x00007ffff6ec65a8 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000)
    at ././glib/gasyncqueue.c:570
#4  0x00007ffff6f19ec6 in g_thread_pool_wait_for_new_task (pool=<optimized out>) at ././glib/gthreadpool.c:262
#5  0x00007ffff6f19ec6 in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:296
#6  0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffcc0035c0) at ././glib/gthread.c:784
#7  0x00007ffff6c91494 in start_thread (arg=0x7fffade05700) at pthread_create.c:333
#8  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 46 (Thread 0x7fffae606700 (LWP 4960)):
#0  0x00007ffff61331e9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6f376fa in g_cond_wait_until (cond=cond@entry=0x5555557752a8, mutex=mutex@entry=0x5555557752a0, end_time=end_time@entry=7485092041) at ././glib/gthread-posix.c:1442
#2  0x00007ffff6ec5f49 in g_async_queue_pop_intern_unlocked (queue=0x5555557752a0, wait=wait@entry=1, end_time=7485092041)
    at ././glib/gasyncqueue.c:422
#3  0x00007ffff6ec65a8 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000)
    at ././glib/gasyncqueue.c:570
#4  0x00007ffff6f19ec6 in g_thread_pool_wait_for_new_task (pool=<optimized out>) at ././glib/gthreadpool.c:262
#5  0x00007ffff6f19ec6 in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:296
#6  0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffc4010cf0) at ././glib/gthread.c:784
#7  0x00007ffff6c91494 in start_thread (arg=0x7fffae606700) at pthread_create.c:333
#8  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 45 (Thread 0x7fffaee07700 (LWP 4959)):
#0  0x00007ffff61331e9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6f376fa in g_cond_wait_until (cond=cond@entry=0x5555557752a8, mutex=mutex@entry=0x5555557752a0, end_time=end_time@entry=7485138606) at ././glib/gthread-posix.c:1442
#2  0x00007ffff6ec5f49 in g_async_queue_pop_intern_unlocked (queue=0x5555557752a0, wait=wait@entry=1, end_time=7485138606)
    at ././glib/gasyncqueue.c:422
#3  0x00007ffff6ec65a8 in g_async_queue_timeout_pop_unlocked (queue=<optimized out>, timeout=timeout@entry=500000)
    at ././glib/gasyncqueue.c:570
#4  0x00007ffff6f19ec6 in g_thread_pool_wait_for_new_task (pool=<optimized out>) at ././glib/gthreadpool.c:262
#5  0x00007ffff6f19ec6 in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:296
#6  0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffbc010ef0) at ././glib/gthread.c:784
#7  0x00007ffff6c91494 in start_thread (arg=0x7fffaee07700) at pthread_create.c:333
#8  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 44 (Thread 0x7fffaf7fe700 (LWP 4958)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c43611 in gst_vaapi_surface_destroy (surface=0x7fffa4018560) at gstvaapisurface.c:84
#3  0x00007ffff2c41ee2 in gst_vaapi_object_finalize (object=0x7fffa4018560) at gstvaapiobject.c:50
#4  0x00007ffff2c41d2e in gst_vaapi_mini_object_free (object=0x7fffa4018560) at gstvaapiminiobject.c:39
#5  0x00007ffff2c41ff5 in gst_vaapi_mini_object_unref_internal (object=<optimized out>) at gstvaapiminiobject.h:203
#6  0x00007ffff2c41ff5 in gst_vaapi_object_unref_internal (object=<optimized out>) at gstvaapiobject_priv.h:209
#7  0x00007ffff2c41ff5 in gst_vaapi_object_unref (object=<optimized out>) at gstvaapiobject.c:130
#8  0x00007ffff2c22330 in allocator_configure_surface_info (req_usage_flag=GST_VAAPI_IMAGE_USAGE_FLAG_DIRECT_UPLOAD, allocator=0x7fffa40181e0 [GstVaapiVideoAllocator], display=0x555555ac5a00 [GstVaapiDisplayDRM]) at gstvaapivideomemory.c:796
#9  0x00007ffff2c22330 in allocator_params_init (req_usage_flag=GST_VAAPI_IMAGE_USAGE_FLAG_DIRECT_UPLOAD, surface_alloc_flags=0, alloc_info=0x1, display=0x555555ac5a00 [GstVaapiDisplayDRM], allocator=0x7fffa40181e0 [GstVaapiVideoAllocator]) at gstvaapivideomemory.c:864
#10 0x00007ffff2c22330 in gst_vaapi_video_allocator_new (display=0x555555ac5a00 [GstVaapiDisplayDRM], alloc_info=alloc_info@entry=0x7fffaf7fd3a0, surface_alloc_flags=surface_alloc_flags@entry=0, req_usage_flag=GST_VAAPI_IMAGE_USAGE_FLAG_DIRECT_UPLOAD)
    at gstvaapivideomemory.c:910
#11 0x00007ffff2c12861 in ensure_sinkpad_allocator (size=<synthetic pointer>, caps=0x7fffa4002950, plugin=0x555555a82ac0)
    at gstvaapipluginbase.c:524
#12 0x00007ffff2c12861 in ensure_sinkpad_buffer_pool (plugin=0x555555a82ac0, caps=0x7fffa4002950) at gstvaapipluginbase.c:783
#13 0x00007ffff2c12ac6 in gst_vaapi_plugin_base_set_caps (plugin=plugin@entry=0x555555a82ac0, incaps=<optimized out>, outcaps=outcaps@entry=0x0) at gstvaapipluginbase.c:834
#14 0x00007ffff2c243c1 in gst_vaapiencode_set_format (venc=0x555555a82ac0 [GstVaapiEncodeH264], state=0x7fffa4001650)
    at gstvaapiencode.c:566
#15 0x00007ffff477ee16 in gst_video_encoder_setcaps (caps=0x7fffa4002950, encoder=0x555555a82ac0 [GstVaapiEncodeH264])
    at gstvideoencoder.c:594
#16 0x00007ffff477ee16 in gst_video_encoder_sink_event_default (encoder=0x555555a82ac0 [GstVaapiEncodeH264], event=0x7fffa4003680)
    at gstvideoencoder.c:946
#17 0x00007ffff2c23288 in gst_vaapiencode_sink_event (venc=0x555555a82ac0 [GstVaapiEncodeH264], event=0x7fffa4003680)
    at gstvaapiencode.c:781
#18 0x00007ffff7464c37 in gst_pad_send_event_unchecked (pad=pad@entry=0x555555a84320 [GstPad], event=event@entry=0x7fffa4003680, type=<optimized out>, type@entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at gstpad.c:5608
#19 0x00007ffff74650ce in gst_pad_push_event_unchecked (pad=pad@entry=0x555555968710 [GstPad], event=0x7fffa4003680, type=type@entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at gstpad.c:5264
#20 0x00007ffff74654d0 in push_sticky (pad=pad@entry=0x555555968710 [GstPad], ev=ev@entry=0x7fffaf7fd7a0, user_data=user_data@entry=0x7fffaf7fd800) at gstpad.c:3807
#21 0x00007ffff74631c7 in events_foreach (pad=pad@entry=0x555555968710 [GstPad], func=func@entry=0x7ffff7465380 <push_sticky>, user_data=user_data@entry=0x7fffaf7fd800) at gstpad.c:604
#22 0x00007ffff746f761 in check_sticky (event=0x7fffa4003680, pad=0x555555968710 [GstPad]) at gstpad.c:3864
#23 0x00007ffff746f761 in gst_pad_push_event (pad=pad@entry=0x555555968710 [GstPad], event=0x7fffa4003680) at gstpad.c:5395
#24 0x00007ffff5c0c8d6 in gst_pad_set_caps (caps=0x7fffa4002950, pad=0x555555968710 [GstPad]) at ../../../gst/gstcompat.h:59
#25 0x00007ffff5c0c8d6 in gst_base_transform_setcaps (trans=trans@entry=0x555555968050 [GstCapsFilter], pad=<optimized out>, incaps=<optimized out>) at gstbasetransform.c:1319
#26 0x00007ffff5c0dd0d in gst_base_transform_sink_eventfunc (trans=trans@entry=0x555555968050 [GstCapsFilter], event=0x7fffa4003030)
    at gstbasetransform.c:1880
#27 0x00007fffe8a580fc in gst_capsfilter_sink_event (trans=0x555555968050 [GstCapsFilter], event=0x7fffa4003030)
    at gstcapsfilter.c:521
#28 0x00007ffff7464c37 in gst_pad_send_event_unchecked (pad=pad@entry=0x5555559682f0 [GstPad], event=event@entry=0x7fffa4003030, type=<optimized out>, type@entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at gstpad.c:5608
#29 0x00007ffff74650ce in gst_pad_push_event_unchecked (pad=pad@entry=0x555555a83cf0 [GstPad], event=0x7fffa4003030, type=type@entry=GST_PAD_PROBE_TYPE_EVENT_DOWNSTREAM) at gstpad.c:5264
#30 0x00007ffff74654d0 in push_sticky (pad=pad@entry=0x555555a83cf0 [GstPad], ev=ev@entry=0x7fffaf7fdb40, user_data=user_data@entry=0x7fffaf7fdba0) at gstpad.c:3807
#31 0x00007ffff74631c7 in events_foreach (pad=pad@entry=0x555555a83cf0 [GstPad], func=func@entry=0x7ffff7465380 <push_sticky>, user_data=user_data@entry=0x7fffaf7fdba0) at gstpad.c:604
#32 0x00007ffff746f761 in check_sticky (event=0x7fffa4003030, pad=0x555555a83cf0 [GstPad]) at gstpad.c:3864
#33 0x00007ffff746f761 in gst_pad_push_event (pad=0x555555a83cf0 [GstPad], event=0x7fffa4003030) at gstpad.c:5395
#34 0x00007ffff5c06697 in gst_base_src_set_caps (src=src@entry=0x555555a838a0 [GstVideoTestSrc], caps=caps@entry=0x7fffa4002950)
    at gstbasesrc.c:932
#35 0x00007ffff5c068d3 in gst_base_src_default_negotiate (basesrc=0x555555a838a0 [GstVideoTestSrc]) at gstbasesrc.c:3291
#36 0x00007ffff5c03f68 in gst_base_src_negotiate (basesrc=0x555555a838a0 [GstVideoTestSrc]) at gstbasesrc.c:3331
#37 0x00007ffff5c03f68 in gst_base_src_loop (pad=0x555555a83cf0 [GstPad]) at gstbasesrc.c:2761
#38 0x00007ffff7499551 in gst_task_func (task=0x555555ac3320 [GstTask]) at gsttask.c:332
#39 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#40 0x00007ffff6f194f5 in g_thread_proxy (data=0x555555aa87e0) at ././glib/gthread.c:784
#41 0x00007ffff6c91494 in start_thread (arg=0x7fffaf7fe700) at pthread_create.c:333
#42 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 43 (Thread 0x7fffaffff700 (LWP 4957)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93b95 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x5555559775b0) at ../nptl/pthread_mutex_lock.c:80
#2  0x00007fffee44766a in mtx_lock (mtx=0x5555559775b0) at ../../../../include/c11/threads_posix.h:227
#3  0x00007fffee44766a in vlVaMapBuffer (ctx=<optimized out>, buf_id=101, pbuff=0x7fffafffeb78) at buffer.c:120
#4  0x00007ffff238aab5 in vaMapBuffer () at /usr/lib/x86_64-linux-gnu/libva.so.1
#5  0x00007ffff2c462a7 in vaapi_map_buffer (dpy=<optimized out>, buf_id=<optimized out>) at gstvaapiutils.c:99
#6  0x00007ffff2c51869 in coded_buffer_map (buf=buf@entry=0x7fffb81fb930) at gstvaapicodedbuffer.c:78
#7  0x00007ffff2c51bbf in coded_buffer_map (buf=0x7fffb81fb930) at gstvaapicodedbuffer.c:195
#8  0x00007ffff2c51bbf in gst_vaapi_coded_buffer_get_size (buf=buf@entry=0x7fffb81fb930) at gstvaapicodedbuffer.c:194
#9  0x00007ffff2c22f9d in gst_vaapiencode_default_alloc_buffer (encode=0x555555a766f0, coded_buf=0x7fffb81fb930, outbuf_ptr=0x7fffafffecb8) at gstvaapiencode.c:196
#10 0x00007ffff2c24bf8 in gst_vaapiencode_h264_alloc_buffer (base_encode=base_encode@entry=0x555555a766f0, coded_buf=0x7fffb81fb930, out_buffer_ptr=out_buffer_ptr@entry=0x7fffafffecb8) at gstvaapiencode_h264.c:611
#11 0x00007ffff2c2354a in gst_vaapiencode_push_frame (encode=encode@entry=0x555555a766f0, timeout=timeout@entry=50000)
    at gstvaapiencode.c:296
#12 0x00007ffff2c2383e in gst_vaapiencode_buffer_loop (encode=0x555555a766f0) at gstvaapiencode.c:341
#13 0x00007ffff7499551 in gst_task_func (task=0x7fffb8018ec0 [GstTask]) at gsttask.c:332
#14 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#15 0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffb8018d10) at ././glib/gthread.c:784
#16 0x00007ffff6c91494 in start_thread (arg=0x7fffaffff700) at pthread_create.c:333
#17 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 42 (Thread 0x7fffdcff9700 (LWP 4956)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c401bf in _gst_vaapi_image_unmap (image=0x7fffb401a3b0) at gstvaapiimage.c:606
#3  0x00007ffff2c415fa in gst_vaapi_image_unmap (image=<optimized out>) at gstvaapiimage.c:590
#4  0x00007ffff2c21714 in unmap_vaapi_memory (flags=<optimized out>, mem=0x7fffb4017d60) at gstvaapivideomemory.c:292
#5  0x00007ffff2c21714 in gst_video_meta_unmap_vaapi_memory (meta=<optimized out>, plane=<optimized out>, info=<optimized out>)
    at gstvaapivideomemory.c:371
#6  0x00007ffff4766f6d in gst_video_frame_unmap (frame=0x7fffdcff87d0) at video-frame.c:264
#7  0x00007ffff2ea5417 in gst_video_test_src_fill (psrc=0x555555a7f340 [GstVideoTestSrc], buffer=0x7fffb4018cf0)
    at gstvideotestsrc.c:1159
#8  0x00007ffff5bff78f in gst_base_src_default_create (src=0x555555a7f340 [GstVideoTestSrc], offset=18446744073709551615, size=4096, buffer=0x7fffdcff8ba0) at gstbasesrc.c:1514
#9  0x00007ffff5c01cc0 in gst_base_src_get_range (src=src@entry=0x555555a7f340 [GstVideoTestSrc], offset=offset@entry=18446744073709551615, length=<optimized out>, buf=buf@entry=0x7fffdcff8c78) at gstbasesrc.c:2499
#10 0x00007ffff5c03deb in gst_base_src_loop (pad=0x555555a7f790 [GstPad]) at gstbasesrc.c:2799
#11 0x00007ffff7499551 in gst_task_func (task=0x555555ac4e90 [GstTask]) at gsttask.c:332
#12 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#13 0x00007ffff6f194f5 in g_thread_proxy (data=0x555555ac5030) at ././glib/gthread.c:784
#14 0x00007ffff6c91494 in start_thread (arg=0x7fffdcff9700) at pthread_create.c:333
#15 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 41 (Thread 0x7fffdd7fa700 (LWP 4955)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c401bf in _gst_vaapi_image_unmap (image=0x7fffb001a270) at gstvaapiimage.c:606
#3  0x00007ffff2c415fa in gst_vaapi_image_unmap (image=<optimized out>) at gstvaapiimage.c:590
#4  0x00007ffff2c21714 in unmap_vaapi_memory (flags=<optimized out>, mem=0x7fffb0017c20) at gstvaapivideomemory.c:292
#5  0x00007ffff2c21714 in gst_video_meta_unmap_vaapi_memory (meta=<optimized out>, plane=<optimized out>, info=<optimized out>)
    at gstvaapivideomemory.c:371
#6  0x00007ffff4766f6d in gst_video_frame_unmap (frame=0x7fffdd7f97d0) at video-frame.c:264
#7  0x00007ffff2ea5417 in gst_video_test_src_fill (psrc=0x555555a7ade0 [GstVideoTestSrc], buffer=0x7fffb0018bb0)
    at gstvideotestsrc.c:1159
#8  0x00007ffff5bff78f in gst_base_src_default_create (src=0x555555a7ade0 [GstVideoTestSrc], offset=18446744073709551615, size=4096, buffer=0x7fffdd7f9ba0) at gstbasesrc.c:1514
#9  0x00007ffff5c01cc0 in gst_base_src_get_range (src=src@entry=0x555555a7ade0 [GstVideoTestSrc], offset=offset@entry=18446744073709551615, length=<optimized out>, buf=buf@entry=0x7fffdd7f9c78) at gstbasesrc.c:2499
#10 0x00007ffff5c03deb in gst_base_src_loop (pad=0x555555a7b230 [GstPad]) at gstbasesrc.c:2799
#11 0x00007ffff7499551 in gst_task_func (task=0x555555abfa20 [GstTask]) at gsttask.c:332
#12 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#13 0x00007ffff6f194f5 in g_thread_proxy (data=0x555555abfb50) at ././glib/gthread.c:784
#14 0x00007ffff6c91494 in start_thread (arg=0x7fffdd7fa700) at pthread_create.c:333
#15 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 40 (Thread 0x7fffddffb700 (LWP 4954)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c43b45 in gst_vaapi_surface_create_full (flags=<optimized out>, vip=0x7fffb8406ea8, surface=0x7fffb8406e50)
    at gstvaapisurface.c:200
#3  0x00007ffff2c43b45 in gst_vaapi_surface_new_full (display=<optimized out>, vip=vip@entry=0x7fffb8019538, flags=<optimized out>)
    at gstvaapisurface.c:382
#4  0x00007ffff2c44ff0 in gst_vaapi_surface_pool_alloc_object (base_pool=0x7fffb80194e0) at gstvaapisurfacepool.c:80
#5  0x00007ffff2c489f1 in gst_vaapi_video_pool_alloc_object (pool=0x7fffb80194e0) at gstvaapivideopool.c:55
#6  0x00007ffff2c489f1 in gst_vaapi_video_pool_get_object_unlocked (pool=0x7fffb80194e0) at gstvaapivideopool.c:181
#7  0x00007ffff2c489f1 in gst_vaapi_video_pool_get_object (pool=pool@entry=0x7fffb80194e0) at gstvaapivideopool.c:200
#8  0x00007ffff2c45503 in gst_vaapi_surface_proxy_new_from_pool (pool=0x7fffb80194e0) at gstvaapisurfaceproxy.c:139
#9  0x00007ffff2c213f5 in new_surface_proxy (mem=0x7fffb8406d00) at gstvaapivideomemory.c:196
#10 0x00007ffff2c213f5 in ensure_surface (mem=0x7fffb8406d00) at gstvaapivideomemory.c:208
#11 0x00007ffff2c213f5 in map_vaapi_memory (flags=GST_MAP_WRITE, mem=0x7fffb8406d00) at gstvaapivideomemory.c:240
#12 0x00007ffff2c213f5 in gst_video_meta_map_vaapi_memory (meta=<optimized out>, plane=0, info=0x7fffddffa8a8, data=0x7fffddffa888, stride=0x7fffddffa838, flags=GST_MAP_WRITE) at gstvaapivideomemory.c:326
#13 0x00007ffff4766b36 in gst_video_frame_map_id (frame=frame@entry=0x7fffddffa7d0, info=info@entry=0x555555a75e10, buffer=buffer@entry=0x7fffb8406ba0, id=id@entry=-1, flags=flags@entry=GST_MAP_WRITE) at video-frame.c:103
#14 0x00007ffff4766f1d in gst_video_frame_map (frame=frame@entry=0x7fffddffa7d0, info=info@entry=0x555555a75e10, buffer=buffer@entry=0x7fffb8406ba0, flags=flags@entry=GST_MAP_WRITE) at video-frame.c:239
#15 0x00007ffff2ea52af in gst_video_test_src_fill (psrc=0x555555a75b60 [GstVideoTestSrc], buffer=0x7fffb8406ba0)
    at gstvideotestsrc.c:1143
#16 0x00007ffff5bff78f in gst_base_src_default_create (src=0x555555a75b60 [GstVideoTestSrc], offset=18446744073709551615, size=4096, buffer=0x7fffddffaba0) at gstbasesrc.c:1514
#17 0x00007ffff5c01cc0 in gst_base_src_get_range (src=src@entry=0x555555a75b60 [GstVideoTestSrc], offset=offset@entry=18446744073709551615, length=<optimized out>, buf=buf@entry=0x7fffddffac78) at gstbasesrc.c:2499
#18 0x00007ffff5c03deb in gst_base_src_loop (pad=0x555555a75fb0 [GstPad]) at gstbasesrc.c:2799
#19 0x00007ffff7499551 in gst_task_func (task=0x555555abd520 [GstTask]) at gsttask.c:332
#20 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#21 0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffc00191a0) at ././glib/gthread.c:784
#22 0x00007ffff6c91494 in start_thread (arg=0x7fffddffb700) at pthread_create.c:333
#23 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 39 (Thread 0x7fffde7fc700 (LWP 4953)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c449b2 in gst_vaapi_surface_sync (surface=0x7fffc00186d0) at gstvaapisurface.c:935
#3  0x00007ffff2c52bf7 in gst_vaapi_encoder_get_buffer_with_timeout (encoder=<optimized out>, out_codedbuf_proxy_ptr=out_codedbuf_proxy_ptr@entry=0x7fffde7fbcb0, timeout=timeout@entry=50000) at gstvaapiencoder.c:473
#4  0x00007ffff2c23434 in gst_vaapiencode_push_frame (encode=encode@entry=0x555555a72130, timeout=timeout@entry=50000)
    at gstvaapiencode.c:275
#5  0x00007ffff2c2383e in gst_vaapiencode_buffer_loop (encode=0x555555a72130) at gstvaapiencode.c:341
#6  0x00007ffff7499551 in gst_task_func (task=0x7fffc0018770 [GstTask]) at gsttask.c:332
#7  0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#8  0x00007ffff6f194f5 in g_thread_proxy (data=0x555555abd6c0) at ././glib/gthread.c:784
#9  0x00007ffff6c91494 in start_thread (arg=0x7fffde7fc700) at pthread_create.c:333
#10 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 38 (Thread 0x7fffdeffd700 (LWP 4952)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c449b2 in gst_vaapi_surface_sync (surface=0x7fffc81fb590) at gstvaapisurface.c:935
#3  0x00007ffff2c52bf7 in gst_vaapi_encoder_get_buffer_with_timeout (encoder=<optimized out>, out_codedbuf_proxy_ptr=out_codedbuf_proxy_ptr@entry=0x7fffdeffccb0, timeout=timeout@entry=50000) at gstvaapiencoder.c:473
#4  0x00007ffff2c23434 in gst_vaapiencode_push_frame (encode=encode@entry=0x555555a6e680, timeout=timeout@entry=50000)
    at gstvaapiencode.c:275
#5  0x00007ffff2c2383e in gst_vaapiencode_buffer_loop (encode=0x555555a6e680) at gstvaapiencode.c:341
#6  0x00007ffff7499551 in gst_task_func (task=0x7fffc8018c10 [GstTask]) at gsttask.c:332
#7  0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#8  0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffc8018a60) at ././glib/gthread.c:784
#9  0x00007ffff6c91494 in start_thread (arg=0x7fffdeffd700) at pthread_create.c:333
#10 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 37 (Thread 0x7fffdf7fe700 (LWP 4951)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c40494 in _gst_vaapi_image_map (image=0x7fffc02261d0, raw_image=raw_image@entry=0x0) at gstvaapiimage.c:553
#3  0x00007ffff2c415cc in gst_vaapi_image_map (image=<optimized out>) at gstvaapiimage.c:536
#4  0x00007ffff2c212cc in map_vaapi_memory (flags=GST_MAP_WRITE, mem=0x7fffc0019b20) at gstvaapivideomemory.c:250
#5  0x00007ffff2c212cc in gst_video_meta_map_vaapi_memory (meta=<optimized out>, plane=0, info=0x7fffdf7fd8a8, data=0x7fffdf7fd888, stride=0x7fffdf7fd838, flags=GST_MAP_WRITE) at gstvaapivideomemory.c:326
#6  0x00007ffff4766b36 in gst_video_frame_map_id (frame=frame@entry=0x7fffdf7fd7d0, info=info@entry=0x555555a717f0, buffer=buffer@entry=0x7fffc00199c0, id=id@entry=-1, flags=flags@entry=GST_MAP_WRITE) at video-frame.c:103
#7  0x00007ffff4766f1d in gst_video_frame_map (frame=frame@entry=0x7fffdf7fd7d0, info=info@entry=0x555555a717f0, buffer=buffer@entry=0x7fffc00199c0, flags=flags@entry=GST_MAP_WRITE) at video-frame.c:239
#8  0x00007ffff2ea52af in gst_video_test_src_fill (psrc=0x555555a71540 [GstVideoTestSrc], buffer=0x7fffc00199c0)
    at gstvideotestsrc.c:1143
#9  0x00007ffff5bff78f in gst_base_src_default_create (src=0x555555a71540 [GstVideoTestSrc], offset=18446744073709551615, size=4096, buffer=0x7fffdf7fdba0) at gstbasesrc.c:1514
#10 0x00007ffff5c01cc0 in gst_base_src_get_range (src=src@entry=0x555555a71540 [GstVideoTestSrc], offset=offset@entry=18446744073709551615, length=<optimized out>, buf=buf@entry=0x7fffdf7fdc78) at gstbasesrc.c:2499
#11 0x00007ffff5c03deb in gst_base_src_loop (pad=0x555555a71990 [GstPad]) at gstbasesrc.c:2799
#12 0x00007ffff7499551 in gst_task_func (task=0x555555967200 [GstTask]) at gsttask.c:332
#13 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#14 0x00007ffff6f194f5 in g_thread_proxy (data=0x5555559673a0) at ././glib/gthread.c:784
#15 0x00007ffff6c91494 in start_thread (arg=0x7fffdf7fe700) at pthread_create.c:333
#16 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 36 (Thread 0x7fffdffff700 (LWP 4950)):
#0  0x00007ffff61331e9 in syscall () at ../sysdeps/unix/sysv/linux/x86_64/syscall.S:38
#1  0x00007ffff6f376fa in g_cond_wait_until (cond=cond@entry=0x555555a78bc8, mutex=mutex@entry=0x555555a78bc0, end_time=end_time@entry=7484690256) at ././glib/gthread-posix.c:1442
#2  0x00007ffff6ec5f49 in g_async_queue_pop_intern_unlocked (queue=queue@entry=0x555555a78bc0, wait=wait@entry=1, end_time=end_time@entry=7484690256) at ././glib/gasyncqueue.c:422
#3  0x00007ffff6ec656c in g_async_queue_timeout_pop (queue=0x555555a78bc0, timeout=timeout@entry=50000) at ././glib/gasyncqueue.c:543
#4  0x00007ffff2c52bd6 in gst_vaapi_encoder_get_buffer_with_timeout (encoder=<optimized out>, out_codedbuf_proxy_ptr=out_codedbuf_proxy_ptr@entry=0x7fffdfffecb0, timeout=timeout@entry=50000) at gstvaapiencoder.c:467
#5  0x00007ffff2c23434 in gst_vaapiencode_push_frame (encode=encode@entry=0x555555a64170, timeout=timeout@entry=50000)
    at gstvaapiencode.c:275
#6  0x00007ffff2c2383e in gst_vaapiencode_buffer_loop (encode=0x555555a64170) at gstvaapiencode.c:341
#7  0x00007ffff7499551 in gst_task_func (task=0x7fffd401c3e0 [GstTask]) at gsttask.c:332
#8  0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#9  0x00007ffff6f194f5 in g_thread_proxy (data=0x7fffd401c4b0) at ././glib/gthread.c:784
#10 0x00007ffff6c91494 in start_thread (arg=0x7fffdffff700) at pthread_create.c:333
#11 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 35 (Thread 0x7fffe4eb6700 (LWP 4949)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93b95 in __GI___pthread_mutex_lock (mutex=mutex@entry=0x5555559775b0) at ../nptl/pthread_mutex_lock.c:80
#2  0x00007fffee447561 in mtx_lock (mtx=0x5555559775b0) at ../../../../include/c11/threads_posix.h:227
#3  0x00007fffee447561 in vlVaCreateBuffer (ctx=0x555555975fd0, context=<optimized out>, type=VAEncPictureParameterBufferType, size=<optimized out>, num_elements=1, data=0x0, buf_id=0x7fffe4eb57cc) at buffer.c:67
#4  0x00007ffff238a984 in vaCreateBuffer () at /usr/lib/x86_64-linux-gnu/libva.so.1
#5  0x00007ffff2c46357 in vaapi_create_buffer (dpy=0x555555976410, ctx=<optimized out>, type=type@entry=23, size=<optimized out>, buf=<optimized out>, buf_id_ptr=buf_id_ptr@entry=0x7fffc8406410, mapped_data=0x7fffc8406438) at gstvaapiutils.c:128
#6  0x00007ffff2c617e9 in gst_vaapi_enc_picture_create (picture=0x7fffc84063e0, args=0x7fffe4eb5820) at gstvaapiencoder_objects.c:393
#7  0x00007ffff2c274e5 in gst_vaapi_codec_object_create (args=0x7fffe4eb5820, object=0x7fffc84063e0) at gstvaapicodec_objects.c:63
#8  0x00007ffff2c274e5 in gst_vaapi_codec_object_new (object_class=object_class@entry=0x7ffff2e9d590 <GstVaapiEncPictureClass>, codec=codec@entry=0x555555ab8ec0, param=param@entry=0x0, param_size=param_size@entry=360, data=data@entry=0x7fffc8406280, data_size=data_size@entry=0, flags=0) at gstvaapicodec_objects.c:93
#9  0x00007ffff2c61b89 in gst_vaapi_enc_picture_new (encoder=encoder@entry=0x555555ab8ec0, param=param@entry=0x0, param_size=param_size@entry=360, frame=frame@entry=0x7fffc8406280) at gstvaapiencoder_objects.c:428
#10 0x00007ffff2c5594c in gst_vaapi_encoder_h264_reordering (base_encoder=0x555555ab8ec0, frame=0x7fffc8406280, output=0x7fffe4eb5908)
    at gstvaapiencoder_h264.c:2766
#11 0x00007ffff2c52a13 in gst_vaapi_encoder_put_frame (encoder=0x555555ab8ec0, frame=<optimized out>, frame@entry=0x7fffc8406280)
    at gstvaapiencoder.c:397
#12 0x00007ffff2c23eca in gst_vaapiencode_handle_frame (venc=0x555555a6e680 [GstVaapiEncodeH264], frame=0x7fffc8406280)
    at gstvaapiencode.c:643
#13 0x00007ffff477fc1f in gst_video_encoder_chain (pad=<optimized out>, parent=<optimized out>, buf=<optimized out>)
    at gstvideoencoder.c:1438
#14 0x00007ffff7465f52 in gst_pad_chain_data_unchecked (data=0x7fffc8019b70, type=4112, pad=0x55555595abe0 [GstPad]) at gstpad.c:4205
#15 0x00007ffff7465f52 in gst_pad_push_data (pad=pad@entry=0x555555a710b0 [GstPad], type=type@entry=4112, data=<optimized out>, 
    data@entry=0x7fffc8019b70) at gstpad.c:4457
#16 0x00007ffff746e3e2 in gst_pad_push (pad=0x555555a710b0 [GstPad], buffer=0x7fffc8019b70) at gstpad.c:4576
#17 0x00007ffff5c0b1fa in gst_base_transform_chain (pad=<optimized out>, parent=<optimized out>, buffer=<optimized out>)
    at gstbasetransform.c:2312
#18 0x00007ffff7465f52 in gst_pad_chain_data_unchecked (data=0x7fffc8019b70, type=4112, pad=0x555555a70c70 [GstPad]) at gstpad.c:4205
#19 0x00007ffff7465f52 in gst_pad_push_data (pad=pad@entry=0x555555a6e1d0 [GstPad], type=type@entry=4112, data=<optimized out>, 
    data@entry=0x7fffc8019b70) at gstpad.c:4457
#20 0x00007ffff746e3e2 in gst_pad_push (pad=pad@entry=0x555555a6e1d0 [GstPad], buffer=0x7fffc8019b70) at gstpad.c:4576
#21 0x00007ffff5c04275 in gst_base_src_loop (pad=0x555555a6e1d0 [GstPad]) at gstbasesrc.c:2913
#22 0x00007ffff7499551 in gst_task_func (task=0x555555966430 [GstTask]) at gsttask.c:332
#23 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#24 0x00007ffff6f194f5 in g_thread_proxy (data=0x555555966560) at ././glib/gthread.c:784
#25 0x00007ffff6c91494 in start_thread (arg=0x7fffe4eb6700) at pthread_create.c:333
#26 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 34 (Thread 0x7fffe56b7700 (LWP 4948)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c44552 in gst_vaapi_surface_put_image (surface=0x7fffd401c230, image=<optimized out>) at gstvaapisurface.c:740
#3  0x00007ffff2c206c3 in ensure_surface_is_current (mem=0x7fffd4033cb0) at gstvaapivideomemory.c:228
#4  0x00007ffff2c21005 in ensure_surface_is_current (mem=<optimized out>) at gstvaapivideomemory.c:221
#5  0x00007ffff2c21005 in gst_vaapi_video_memory_sync (mem=<optimized out>) at gstvaapivideomemory.c:450
#6  0x00007ffff2c1d6d6 in ensure_surface_proxy (meta=<optimized out>, meta=<optimized out>) at gstvaapivideometa.c:67
#7  0x00007ffff2c1de85 in gst_vaapi_video_meta_get_surface_proxy (meta=0x7fffd4033740) at gstvaapivideometa.c:559
#8  0x00007ffff2c23e7b in gst_vaapiencode_handle_frame (venc=0x555555a64170 [GstVaapiEncodeH264], frame=0x7fffd4016a80)
    at gstvaapiencode.c:634
#9  0x00007ffff477fc1f in gst_video_encoder_chain (pad=<optimized out>, parent=<optimized out>, buf=<optimized out>)
    at gstvideoencoder.c:1438
#10 0x00007ffff7465f52 in gst_pad_chain_data_unchecked (data=0x7fffd4033aa0, type=4112, pad=0x555555814ba0 [GstPad]) at gstpad.c:4205
#11 0x00007ffff7465f52 in gst_pad_push_data (pad=pad@entry=0x555555961b60 [GstPad], type=type@entry=4112, data=<optimized out>, 
    data@entry=0x7fffd4033aa0) at gstpad.c:4457
#12 0x00007ffff746e3e2 in gst_pad_push (pad=0x555555961b60 [GstPad], buffer=0x7fffd4033aa0) at gstpad.c:4576
#13 0x00007ffff5c0b1fa in gst_base_transform_chain (pad=<optimized out>, parent=<optimized out>, buffer=<optimized out>)
    at gstbasetransform.c:2312
#14 0x00007ffff7465f52 in gst_pad_chain_data_unchecked (data=0x7fffd4033aa0, type=4112, pad=0x555555961780 [GstPad]) at gstpad.c:4205
#15 0x00007ffff7465f52 in gst_pad_push_data (pad=pad@entry=0x555555923730 [GstPad], type=type@entry=4112, data=<optimized out>, 
    data@entry=0x7fffd4033aa0) at gstpad.c:4457
#16 0x00007ffff746e3e2 in gst_pad_push (pad=pad@entry=0x555555923730 [GstPad], buffer=0x7fffd4033aa0) at gstpad.c:4576
#17 0x00007ffff5c04275 in gst_base_src_loop (pad=0x555555923730 [GstPad]) at gstbasesrc.c:2913
#18 0x00007ffff7499551 in gst_task_func (task=0x555555aa7990 [GstTask]) at gsttask.c:332
#19 0x00007ffff6f19eee in g_thread_pool_thread_proxy (data=<optimized out>) at ././glib/gthreadpool.c:307
#20 0x00007ffff6f194f5 in g_thread_proxy (data=0x5555558fd590) at ././glib/gthread.c:784
#21 0x00007ffff6c91494 in start_thread (arg=0x7fffe56b7700) at pthread_create.c:333
#22 0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 33 (Thread 0x7fffe7249700 (LWP 4947)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x5555559786e0, cond=0x555555978708) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559747d0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffe7249700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 32 (Thread 0x7fffe7a4a700 (LWP 4946)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x5555559786e0, cond=0x555555978708) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559747d0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffe7a4a700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 31 (Thread 0x7fffe824b700 (LWP 4945)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x5555559786e0, cond=0x555555978708) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559747d0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffe824b700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 30 (Thread 0x7fffe8a4c700 (LWP 4944)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x5555559785f8, cond=0x555555978620) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559747b0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffe8a4c700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 29 (Thread 0x7fffe66b9700 (LWP 4943)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x5555559785f8, cond=0x555555978620) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559747b0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffe66b9700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 28 (Thread 0x7fffe5eb8700 (LWP 4942)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x5555559785f8, cond=0x555555978620) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559747b0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffe5eb8700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 27 (Thread 0x7fffe98f9700 (LWP 4941)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x5555559762c0, cond=0x5555559762e8) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559763d0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffe98f9700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 26 (Thread 0x7fffea938700 (LWP 4940)):
#0  0x00007ffff6c9715f in pthread_cond_wait@@GLIBC_2.3.2 () at ../sysdeps/unix/sysv/linux/x86_64/pthread_cond_wait.S:185
#1  0x00007fffee556fdb in cnd_wait (mtx=0x555555977b50, cond=0x555555977b78) at ../../include/c11/threads_posix.h:159
#2  0x00007fffee556fdb in util_queue_thread_func (input=input@entry=0x5555559780c0) at u_queue.c:158
#3  0x00007fffee556f07 in impl_thrd_routine (p=<optimized out>) at ../../include/c11/threads_posix.h:87
#4  0x00007ffff6c91494 in start_thread (arg=0x7fffea938700) at pthread_create.c:333
#5  0x00007ffff6137a8f in clone () at ../sysdeps/unix/sysv/linux/x86_64/clone.S:97

Thread 1 (Thread 0x7ffff7fd5d00 (LWP 4912)):
#0  0x00007ffff6c99f5c in __lll_lock_wait () at ../sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:135
#1  0x00007ffff6c93c06 in __GI___pthread_mutex_lock (mutex=0x555555975560) at ../nptl/pthread_mutex_lock.c:115
#2  0x00007ffff2c46d91 in gst_vaapi_get_config_attribute (display=0x555555ab51b0 [GstVaapiDisplayDRM], profile=VAProfileH264Main, entrypoint=4294967295, type=type@entry=VAConfigAttribRateControl, out_value_ptr=out_value_ptr@entry=0x7fffffffe07c)
    at gstvaapiutils_core.c:65
#3  0x00007ffff2c522b9 in get_config_attribute (encoder=encoder@entry=0x555555ab7ec0, type=type@entry=VAConfigAttribRateControl, out_value_ptr=out_value_ptr@entry=0x7fffffffe07c) at gstvaapiencoder.c:613
#4  0x00007ffff2c5348a in get_rate_control_mask (encoder=0x555555ab7ec0) at gstvaapiencoder.c:1026
#5  0x00007ffff2c5348a in gst_vaapi_encoder_set_rate_control (encoder=0x555555ab7ec0, rate_control=GST_VAAPI_RATECONTROL_CQP)
    at gstvaapiencoder.c:1071
#6  0x00007ffff2c53952 in set_property (value=<optimized out>, prop_id=1, encoder=0x555555ab7ec0) at gstvaapiencoder.c:952
#7  0x00007ffff2c53952 in gst_vaapi_encoder_set_property (encoder=encoder@entry=0x555555ab7ec0, prop_id=<optimized out>, value=<optimized out>, value@entry=0x0) at gstvaapiencoder.c:1001
#8  0x00007ffff2c53cb6 in gst_vaapi_encoder_init_properties (encoder=0x555555ab7ec0) at gstvaapiencoder.c:1247
#9  0x00007ffff2c53cb6 in gst_vaapi_encoder_init (display=<optimized out>, encoder=0x555555ab7ec0) at gstvaapiencoder.c:1294
#10 0x00007ffff2c53cb6 in gst_vaapi_encoder_new (klass=<optimized out>, display=<optimized out>) at gstvaapiencoder.c:1348
#11 0x00007ffff2c23963 in ensure_encoder (encode=0x555555972250) at gstvaapiencode.c:484
#12 0x00007ffff477f10e in gst_video_encoder_change_state (element=0x555555972250 [GstVaapiEncodeH264], transition=GST_STATE_CHANGE_READY_TO_PAUSED) at gstvideoencoder.c:1477
#13 0x00007ffff744e4ae in gst_element_change_state (element=element@entry=0x555555972250 [GstVaapiEncodeH264], transition=transition@entry=GST_STATE_CHANGE_READY_TO_PAUSED) at gstelement.c:2749
#14 0x00007ffff744ec1f in gst_element_set_state_func (element=0x555555972250 [GstVaapiEncodeH264], state=GST_STATE_PAUSED)
    at gstelement.c:2703
#15 0x00007ffff742cffd in gst_bin_element_set_state (next=GST_STATE_PAUSED, current=GST_STATE_READY, start_time=0, base_time=0, element=0x555555972250 [GstVaapiEncodeH264], bin=0x555555974940 [GstPipeline]) at gstbin.c:2596
#16 0x00007ffff742cffd in gst_bin_change_state_func (element=0x555555974940 [GstPipeline], transition=GST_STATE_CHANGE_READY_TO_PAUSED) at gstbin.c:2938
#17 0x00007ffff744e4ae in gst_element_change_state (element=element@entry=0x555555974940 [GstPipeline], transition=GST_STATE_CHANGE_READY_TO_PAUSED) at gstelement.c:2749
#18 0x00007ffff744ef0f in gst_element_continue_state (element=element@entry=0x555555974940 [GstPipeline], ret=ret@entry=GST_STATE_CHANGE_SUCCESS) at gstelement.c:2457
#19 0x00007ffff744e796 in gst_element_change_state (element=element@entry=0x555555974940 [GstPipeline], transition=transition@entry=GST_STATE_CHANGE_NULL_TO_READY) at gstelement.c:2788
#20 0x00007ffff744ec1f in gst_element_set_state_func (element=0x555555974940 [GstPipeline], state=GST_STATE_PLAYING)
    at gstelement.c:2703
#21 0x0000555555554c30 in main(int, char**) (argc=2, argv=0x7fffffffe548) at ../src/main.cpp:36
