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

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) ...@@ -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 */
} }
......
Markdown is supported
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