[Mplayer-cvslog] CVS: main dec_audio.c,1.37,1.38

Atmosfear atmos4 at mplayer.dev.hu
Mon Sep 3 01:06:40 CEST 2001


Update of /cvsroot/mplayer/main
In directory mplayer:/var/tmp.root/cvs-serv11072

Modified Files:
	dec_audio.c 
Log Message:
Resetting stream and sync for seek, no correct test files yet for proper testing but should be ok.


Index: dec_audio.c
===================================================================
RCS file: /cvsroot/mplayer/main/dec_audio.c,v
retrieving revision 1.37
retrieving revision 1.38
diff -u -r1.37 -r1.38
--- dec_audio.c	2 Sep 2001 17:21:52 -0000	1.37
+++ dec_audio.c	2 Sep 2001 23:06:21 -0000	1.38
@@ -409,7 +409,6 @@
     }
   }
   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 @@
           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);}




More information about the MPlayer-cvslog mailing list