VOUT_CLOSE is unsafe and pointless. Do not use it.
[vlc.git] / modules / gui / maemo / maemo_callbacks.c
index e89aa66..c14435c 100644 (file)
@@ -54,7 +54,7 @@ gboolean delete_event_cb( GtkWidget *widget,
     intf_thread_t *p_intf = get_intf_from_widget( widget );
 
     vlc_mutex_lock( &p_intf->change_lock );
-    vlc_object_kill( p_intf->p_libvlc );
+    libvlc_Quit( p_intf->p_libvlc );
     vlc_mutex_unlock( &p_intf->change_lock );
 
     gtk_main_quit();
@@ -232,7 +232,7 @@ void snapshot_cb( GtkMenuItem *menuitem, gpointer user_data )
         return;
     }
 
-    vout_Control( p_intf->p_sys->p_vout, VOUT_SNAPSHOT );
+    var_TriggerCallback( p_intf->p_sys->p_vout, "video-snapshot" );
     hildon_banner_show_information( GTK_WIDGET( p_intf->p_sys->p_main_window ),
                                     NULL,
                                     "Snapshot taken" );