mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
ext/vorbis/vorbisdec.c: Correctly flush decoder samples even if we could not copy them to an output buffer. Fixes #31...
Original commit message from CVS: * ext/vorbis/vorbisdec.c: (vorbis_handle_data_packet): Correctly flush decoder samples even if we could not copy them to an output buffer. Fixes #319618.
This commit is contained in:
parent
d69cf5631a
commit
37c0c43425
2 changed files with 8 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2005-10-24 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* ext/vorbis/vorbisdec.c: (vorbis_handle_data_packet):
|
||||
Correctly flush decoder samples even if we could not
|
||||
copy them to an output buffer. Fixes #319618.
|
||||
|
||||
2005-10-24 Julien MOUTTE <julien@moutte.net>
|
||||
|
||||
* sys/ximage/ximagesink.c: (gst_ximagesink_setcaps):
|
||||
|
|
|
@ -810,11 +810,11 @@ vorbis_handle_data_packet (GstVorbisDec * vd, ogg_packet * packet)
|
|||
if (vd->granulepos != -1)
|
||||
vd->granulepos += sample_count;
|
||||
|
||||
vorbis_synthesis_read (&vd->vd, sample_count);
|
||||
|
||||
result = vorbis_dec_push (vd, out);
|
||||
|
||||
done:
|
||||
vorbis_synthesis_read (&vd->vd, sample_count);
|
||||
|
||||
/* granulepos is the last sample in the packet */
|
||||
if (packet->granulepos != -1)
|
||||
vd->granulepos = packet->granulepos;
|
||||
|
|
Loading…
Reference in a new issue