]> git.sesse.net Git - vlc/commitdiff
Fix audio and do not read 1 byte without remembering it
authorClément Stenac <zorglub@videolan.org>
Thu, 22 Apr 2004 12:54:05 +0000 (12:54 +0000)
committerClément Stenac <zorglub@videolan.org>
Thu, 22 Apr 2004 12:54:05 +0000 (12:54 +0000)
modules/access/pvr/pvr.c

index 8c5b65e6a53365d275c0d7fcf22de3862c8e244b..cc065d02ae2945f888cfdfc26360a10febecaea0 100644 (file)
@@ -137,6 +137,7 @@ static int Open( vlc_object_t * p_this )
     p_sys->i_bitrate = -1;
     p_sys->i_bitrate_peak = -1;
     p_sys->i_bitrate_mode = -1;
+    p_sys->i_audio_bitmask = -1;
     p_sys->i_input = -1;
 
     /* parse command line options */
@@ -464,6 +465,7 @@ static int Open( vlc_object_t * p_this )
     }
 
     /* do a quick read */
+#if 0
     if ( p_sys->i_fd )
     {
         if ( read( p_sys->i_fd, psz_tmp, 1 ) )
@@ -475,6 +477,7 @@ static int Open( vlc_object_t * p_this )
             msg_Warn(p_input, "Could not read byte from device");
         }
     }
+#endif
     return VLC_SUCCESS;
 }