[vlc-devel] commit: Revert b1cea0a301d6bc partially (bad warning fix) ( Jean-Philippe Andre )

git version control git at videolan.org
Sat Aug 23 02:31:54 CEST 2008


vlc | branch: master | Jean-Philippe Andre <jpeg at via.ecp.fr> | Fri Aug 22 18:57:00 2008 -0400| [11898ef3373b1af884bafcf3b6380ff8a0d165d8] | committer: Jean-Philippe Andre 

Revert b1cea0a301d6bc partially (bad warning fix)

Sorry I pushed this.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=11898ef3373b1af884bafcf3b6380ff8a0d165d8
---

 modules/access_filter/timeshift.c |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

diff --git a/modules/access_filter/timeshift.c b/modules/access_filter/timeshift.c
index e2e39bb..6567e22 100644
--- a/modules/access_filter/timeshift.c
+++ b/modules/access_filter/timeshift.c
@@ -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;




More information about the vlc-devel mailing list