mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
vtdec: Fix deadlock when attempting to negotiate
This was wrongly calling the base class method, which unnecessairly took the stream lock, already taken by handle_frame(). The drain() call in negotiate() would then wait for the output loop to pause, while that loop is stuck waiting to take the stream lock, thus causing a deadlock. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5521>
This commit is contained in:
parent
0a29654d7b
commit
e79b308f82
1 changed files with 1 additions and 1 deletions
|
@ -812,7 +812,7 @@ gst_vtdec_handle_frame (GstVideoDecoder * decoder, GstVideoCodecFrame * frame)
|
||||||
/* Negotiate now so that we know whether we need to use the GL upload meta or not.
|
/* Negotiate now so that we know whether we need to use the GL upload meta or not.
|
||||||
* gst_vtenc_negotiate() will drain before attempting to negotiate. */
|
* gst_vtenc_negotiate() will drain before attempting to negotiate. */
|
||||||
if (gst_pad_check_reconfigure (decoder->srcpad)) {
|
if (gst_pad_check_reconfigure (decoder->srcpad)) {
|
||||||
if (!gst_video_decoder_negotiate (decoder)) {
|
if (!gst_vtdec_negotiate (decoder)) {
|
||||||
gst_pad_mark_reconfigure (decoder->srcpad);
|
gst_pad_mark_reconfigure (decoder->srcpad);
|
||||||
if (GST_PAD_IS_FLUSHING (decoder->srcpad))
|
if (GST_PAD_IS_FLUSHING (decoder->srcpad))
|
||||||
ret = GST_FLOW_FLUSHING;
|
ret = GST_FLOW_FLUSHING;
|
||||||
|
|
Loading…
Reference in a new issue