vorbisdec: only finish header packet frame if received in-stream
... rather than scaring audiodecoder with a frame extracted from caps. Fixes #662108 (partially).
This commit is contained in:
parent
b4803361c6
commit
43928e33e6
@ -458,9 +458,6 @@ vorbis_handle_header_packet (GstVorbisDec * vd, ogg_packet * packet)
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* consumer header packet/frame */
|
|
||||||
gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (vd), NULL, 1);
|
|
||||||
|
|
||||||
return res;
|
return res;
|
||||||
|
|
||||||
/* ERRORS */
|
/* ERRORS */
|
||||||
@ -693,6 +690,8 @@ vorbis_dec_handle_frame (GstAudioDecoder * dec, GstBuffer * buffer)
|
|||||||
goto done;
|
goto done;
|
||||||
}
|
}
|
||||||
result = vorbis_handle_header_packet (vd, packet);
|
result = vorbis_handle_header_packet (vd, packet);
|
||||||
|
/* consumer header packet/frame */
|
||||||
|
gst_audio_decoder_finish_frame (GST_AUDIO_DECODER (vd), NULL, 1);
|
||||||
} else {
|
} else {
|
||||||
GstClockTime timestamp, duration;
|
GstClockTime timestamp, duration;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user