]> git.sesse.net Git - vlc/commitdiff
libvlc compile warnings resolved
authorFilippo Carone <littlejohn@videolan.org>
Tue, 6 Jun 2006 11:17:52 +0000 (11:17 +0000)
committerFilippo Carone <littlejohn@videolan.org>
Tue, 6 Jun 2006 11:17:52 +0000 (11:17 +0000)
src/control/input.c
src/control/video.c

index 94026c1b0af5362e72c252fe4995a8868c1c7327..4a2b89360e64414c81f40136eefe89bbd6bb64e2 100644 (file)
@@ -44,7 +44,7 @@ input_thread_t *libvlc_get_input_thread( libvlc_input_t *p_input,
     if( !p_input )
     {
         libvlc_exception_raise( p_e, "Input is NULL" );
-        return -1;
+        return NULL;
     }
 
     p_input_thread = (input_thread_t*)vlc_object_get(
index 968d51bea71c14c3f796c5a329530dd7f0e0d975..22e60183260a894a55036a3116896ea02ec8797b 100644 (file)
@@ -154,7 +154,7 @@ libvlc_video_take_snapshot( libvlc_input_t *p_input, char *psz_filepath,
     if( !p_input_thread )
     {
         libvlc_exception_raise( p_e, "Input does not exist" );
-        return NULL;
+        return;
     }
    
     snprintf( path, 255, "%s", psz_filepath );