mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
audioencoder: If there are no tags, don't try to do event handling on a NULL event
Fixes some crashes.
This commit is contained in:
parent
cca823b490
commit
2de91c32e4
1 changed files with 6 additions and 0 deletions
|
@ -1641,6 +1641,12 @@ gst_audio_encoder_sink_event_default (GstAudioEncoder * enc, GstEvent * event)
|
||||||
gst_event_unref (event);
|
gst_event_unref (event);
|
||||||
event = gst_audio_encoder_create_merged_tags_event (enc);
|
event = gst_audio_encoder_create_merged_tags_event (enc);
|
||||||
GST_AUDIO_ENCODER_STREAM_UNLOCK (enc);
|
GST_AUDIO_ENCODER_STREAM_UNLOCK (enc);
|
||||||
|
|
||||||
|
/* No tags, go out of here instead of fall through */
|
||||||
|
if (!event) {
|
||||||
|
res = TRUE;
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* fall through */
|
/* fall through */
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue