Commit 2de91c32 authored by Sebastian Dröge's avatar Sebastian Dröge
Browse files

audioencoder: If there are no tags, don't try to do event handling on a NULL event

Fixes some crashes.
parent cca823b4
......@@ -1641,6 +1641,12 @@ gst_audio_encoder_sink_event_default (GstAudioEncoder * enc, GstEvent * event)
gst_event_unref (event);
event = gst_audio_encoder_create_merged_tags_event (enc);
/* No tags, go out of here instead of fall through */
if (!event) {
res = TRUE;
/* fall through */
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment