From a69d6ddb749d4a229417048c38809baab1af07f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Dr=C3=B6ge?= Date: Sat, 2 Jun 2012 17:02:10 +0200 Subject: [PATCH] vorbisdec: Error out if handling a header packet failed instead of just finishing the frame --- ext/vorbis/gstvorbisdec.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index cb4f725b3a..b14d2d217c 100644 --- a/ext/vorbis/gstvorbisdec.c +++ b/ext/vorbis/gstvorbisdec.c @@ -585,8 +585,10 @@ vorbis_dec_handle_frame (GstAudioDecoder * dec, GstBuffer * buffer) goto done; } result = vorbis_handle_header_packet (vd, packet); + if (result != GST_FLOW_OK) + goto done; /* consumer header packet/frame */ - gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (vd), NULL, 1); + result = gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (vd), NULL, 1); } else { GstClockTime timestamp, duration;