mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
vorbisdec: Error out if handling a header packet failed instead of just finishing the frame
This commit is contained in:
parent
443b0a3c78
commit
a69d6ddb74
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue