]> git.sesse.net Git - vlc/commitdiff
Revert b1cea0a301d6bc partially (bad warning fix)
authorJean-Philippe Andre <jpeg@via.ecp.fr>
Fri, 22 Aug 2008 22:57:00 +0000 (18:57 -0400)
committerJean-Philippe Andre <jpeg@via.ecp.fr>
Sat, 23 Aug 2008 00:34:44 +0000 (20:34 -0400)
Sorry I pushed this.

modules/access_filter/timeshift.c

index e2e39bb686eb73982fb8deb1b34be16c73fbbb1e..6567e22c57cde4579c3030dd69f4dc7999c3a22d 100644 (file)
@@ -378,12 +378,7 @@ static void NextFileWrite( access_t *p_access )
 
     /* Put written file in read list */
     if( p_sys->i_write_size < p_sys->i_file_size )
-        if( ftruncate( fileno( p_sys->p_write_list->file ),
-                       p_sys->i_write_size ) == -1 )
-        {
-            msg_Dbg( p_access, "unable to truncate file: %m" );
-            /* return; */
-        }
+        ftruncate( fileno( p_sys->p_write_list->file ), p_sys->i_write_size );
 
     fseek( p_sys->p_write_list->file, 0, SEEK_SET );
     *p_sys->pp_read_last = p_sys->p_write_list;