Timeshift: fix crash on I/O error (CID#157)
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 5 Oct 2008 13:54:40 +0000 (16:54 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 5 Oct 2008 13:54:40 +0000 (16:54 +0300)
modules/access_filter/timeshift.c

index a1e353a..df48674 100644 (file)
@@ -298,7 +298,8 @@ static void* Thread( vlc_object_t* p_this )
               block_Release( p_block );
               p_block = NULL;
             }
               block_Release( p_block );
               p_block = NULL;
             }
-            p_block->i_buffer = i_read;
+            else
+                p_block->i_buffer = i_read;
         }
 
         if( p_block == NULL )
         }
 
         if( p_block == NULL )