diff options
author | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-10-18 21:40:54 +0200 |
---|---|---|
committer | Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk> | 2011-10-19 16:44:44 +0200 |
commit | 43928e33e6ec9817c9c8ef3e289442b646508168 (patch) | |
tree | 2d455276439e65837041fb71c4229b63aa15b49f /ext | |
parent | b4803361c6292c4f628015a2a04f2835d26cedef (diff) |
vorbisdec: only finish header packet frame if received in-stream
... rather than scaring audiodecoder with a frame extracted from caps.
Fixes #662108 (partially).
Diffstat (limited to 'ext')
-rw-r--r-- | ext/vorbis/gstvorbisdec.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/vorbis/gstvorbisdec.c b/ext/vorbis/gstvorbisdec.c index 6e6601a29..9b0b50bd1 100644 --- a/ext/vorbis/gstvorbisdec.c +++ b/ext/vorbis/gstvorbisdec.c @@ -458,9 +458,6 @@ vorbis_handle_header_packet (GstVorbisDec * vd, ogg_packet * packet) break; } - /* consumer header packet/frame */ - gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (vd), NULL, 1); - return res; /* ERRORS */ @@ -693,6 +690,8 @@ vorbis_dec_handle_frame (GstAudioDecoder * dec, GstBuffer * buffer) goto done; } result = vorbis_handle_header_packet (vd, packet); + /* consumer header packet/frame */ + gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (vd), NULL, 1); } else { GstClockTime timestamp, duration; |