Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
George Kiagiadakis
gst-plugins-base
Commits
2de91c32
Commit
2de91c32
authored
Aug 18, 2015
by
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
gst-libs/gst/audio/gstaudioencoder.c
View file @
2de91c32
...
...
@@ -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
);
GST_AUDIO_ENCODER_STREAM_UNLOCK
(
enc
);
/* No tags, go out of here instead of fall through */
if
(
!
event
)
{
res
=
TRUE
;
break
;
}
}
/* fall through */
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment