vorbisdec: Error out if handling a header packet failed instead of just finishing...
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 2 Jun 2012 15:02:10 +0000 (17:02 +0200)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Sat, 2 Jun 2012 15:16:13 +0000 (17:16 +0200)
ext/vorbis/gstvorbisdec.c

index cb4f725..b14d2d2 100644 (file)
@@ -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;