mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
audiodecoder: Don't post error messages while holding the stream lock
This commit is contained in:
parent
9196c3dcca
commit
a21795260f
1 changed files with 1 additions and 1 deletions
|
@ -1984,9 +1984,9 @@ gst_audio_decoder_handle_gap (GstAudioDecoder * dec, GstEvent * event)
|
||||||
GST_AUDIO_DECODER_STREAM_LOCK (dec);
|
GST_AUDIO_DECODER_STREAM_LOCK (dec);
|
||||||
if (!GST_AUDIO_INFO_IS_VALID (&dec->priv->ctx.info)) {
|
if (!GST_AUDIO_INFO_IS_VALID (&dec->priv->ctx.info)) {
|
||||||
if (!gst_audio_decoder_negotiate_default_caps (dec)) {
|
if (!gst_audio_decoder_negotiate_default_caps (dec)) {
|
||||||
|
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
|
||||||
GST_ELEMENT_ERROR (dec, STREAM, FORMAT, (NULL),
|
GST_ELEMENT_ERROR (dec, STREAM, FORMAT, (NULL),
|
||||||
("Decoder output not negotiated before GAP event."));
|
("Decoder output not negotiated before GAP event."));
|
||||||
GST_AUDIO_DECODER_STREAM_UNLOCK (dec);
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue