]> git.sesse.net Git - vlc/blobdiff - modules/control/rc.c
Add fonctions to the update system : all is in a thread now. The rc interface doesn...
[vlc] / modules / control / rc.c
index 94c485816525fa684f07366e99b0c627ebb7d774..54d5673dd17bfae2c72ad4e12063894c9e95cbe6 100644 (file)
@@ -2114,19 +2114,12 @@ static input_item_t *parse_MRL( intf_thread_t *p_intf, char *psz_mrl )
 #ifdef UPDATE_CHECK
 static void checkUpdates( intf_thread_t *p_intf )
 {
+    /*TODO: - modify this to delete p_update to avoid a memory leak !
+            - complete the function wich is not working obiously !
     update_t *p_u = update_New( p_intf );
-    if( p_u == NULL ) return;
+    var_AddCallback( p_intf->p_libvlc, "update-notify", updatesCallback, p_intf );
 
-    update_Check( p_u );
     msg_rc( "\nChecking for updates" );
-
-    if( update_CompareReleaseToCurrent( p_u ) == UpdateReleaseStatusNewer )
-        msg_rc( "\n+----[ VLC %i.%i.%i%s ] ", p_u->release.i_major,
-                                              p_u->release.i_minor,
-                                              p_u->release.i_revision,
-                                              p_u->release.psz_extra );
-    else
-        msg_rc( "\n+----Last version" );
-    update_Delete( p_u );
+    update_Check( p_u );*/
 }
 #endif