summaryrefslogtreecommitdiffstats
path: root/dec_audio.c
diff options
context:
space:
mode:
authoratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 23:06:21 +0000
committeratmos4 <atmos4@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-09-02 23:06:21 +0000
commitd1a03c49ba04a0609021271d48aeda6c83f453e2 (patch)
tree4324175bdd49ababdadb749b8e47ce2b441e19eb /dec_audio.c
parent9b5e280ea49fa5ec98627a8dc30691fd429d6a3b (diff)
downloadmpv-d1a03c49ba04a0609021271d48aeda6c83f453e2.tar.bz2
mpv-d1a03c49ba04a0609021271d48aeda6c83f453e2.tar.xz
Resetting stream and sync for seek, no correct test files yet for proper testing but should be ok.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1850 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'dec_audio.c')
-rw-r--r--dec_audio.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/dec_audio.c b/dec_audio.c
index 5851398eb5..e2f2a281a2 100644
--- a/dec_audio.c
+++ b/dec_audio.c
@@ -409,7 +409,6 @@ case AFM_VORBIS: {
}
}
mp_msg(MSGT_DECAUDIO,MSGL_V,"OggVorbis: Pageout: successfull.\n");
- /* commenting out pagein to leave data (hopefully) to the decoder - atmos */
ogg_stream_pagein(&sh_audio->ov->os,&sh_audio->ov->og); /* we can ignore any errors here
as they'll also become apparent
at packetout */
@@ -666,6 +665,13 @@ void resync_audio_stream(sh_audio_t *sh_audio){
MP3_DecodeFrame(NULL,-2); // resync
MP3_DecodeFrame(NULL,-2); // resync
break;
+#ifdef HAVE_OGGVORBIS
+ case AFM_VORBIS:
+ //printf("OggVorbis: resetting stream.\n");
+ ogg_sync_reset(&sh_audio->ov->oy);
+ ogg_stream_reset(&sh_audio->ov->os);
+ break;
+#endif
case AFM_AC3:
ac3_bitstream_reset(); // reset AC3 bitstream buffer
// if(verbose){ printf("Resyncing AC3 audio...");fflush(stdout);}