mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 18:05:37 +00:00
icydemux: Fix segfault if metadata-interval is 0
Prevents an extra unref of GstBuffer when passing a non-icy stream through icydemux with metadata-interval set to 0. Reproducible with: gst-launch-1.0 filesrc location=~/testsong.mp3 ! \ 'application/x-icy,metadata-interval=(int)0' ! icydemux ! decodebin ! wavenc ! \ filesink location=~/testsong.wav https://bugzilla.gnome.org/show_bug.cgi?id=748024
This commit is contained in:
parent
fd6a5a5d90
commit
fc038f1f4e
1 changed files with 1 additions and 0 deletions
|
@ -551,6 +551,7 @@ gst_icydemux_chain (GstPad * pad, GstObject * parent, GstBuffer * buf)
|
|||
|
||||
if (icydemux->meta_interval == 0) {
|
||||
ret = gst_icydemux_typefind_or_forward (icydemux, buf);
|
||||
buf = NULL;
|
||||
goto done;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue