]> git.sesse.net Git - vlc/commitdiff
* modules/demux/ogg.c: latest change for web radios support did affect the quality...
authorGildas Bazin <gbazin@videolan.org>
Wed, 9 Jul 2003 22:10:13 +0000 (22:10 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 9 Jul 2003 22:10:13 +0000 (22:10 +0000)
ogg files. Make the check a bit more strict.

modules/demux/ogg.c

index 8a435054ad1c2d69d7233d013d8d403d1f408a4e..8bde289fd6e2d5d67a841e14545e767f5457cfc3 100644 (file)
@@ -2,7 +2,7 @@
  * ogg.c : ogg stream input module for vlc
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: ogg.c,v 1.28 2003/06/24 00:31:34 gbazin Exp $
+ * $Id: ogg.c,v 1.29 2003/07/09 22:10:13 gbazin Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  * 
@@ -1418,7 +1418,7 @@ static int Demux( input_thread_t * p_input )
 
     /* This is for streams where the granulepos of the header packets
      * don't match these of the data packets (eg. ogg web radios). */
-    if( p_ogg->i_old_pcr == 0 && p_ogg->i_pcr > 0 )
+    if( p_ogg->i_old_pcr == 0 && p_ogg->i_pcr > 3 * DEFAULT_PTS_DELAY * 9/100 )
         p_input->stream.p_selected_program->i_synchro_state = SYNCHRO_REINIT;
 
     /* Call the pace control */