Commit 24cddfa0 authored by Laurent Aimar's avatar Laurent Aimar

Merge commit 'origin/1.0-bugfix'

parents d1d3d7b4 6dce48f6
...@@ -136,7 +136,7 @@ static void PlaylistAddItem(GtkWidget *widget, gchar *name, char **ppsz_options, ...@@ -136,7 +136,7 @@ static void PlaylistAddItem(GtkWidget *widget, gchar *name, char **ppsz_options,
(const char*)name, (const char*)name,
PLAYLIST_APPEND, PLAYLIST_END, PLAYLIST_APPEND, PLAYLIST_END,
(mtime_t) 0, (mtime_t) 0,
i_options, (const char **) ppsz_options, VLC_INPUT_OPTION_TRUSTED, i_size, (const char **) ppsz_options, VLC_INPUT_OPTION_TRUSTED,
true, pl_Unlocked ); true, pl_Unlocked );
} }
......
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include <sys/types.h> #include <sys/types.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <unistd.h> #include <unistd.h>
#include <string.h>
#include <gtk/gtk.h> #include <gtk/gtk.h>
...@@ -75,6 +76,7 @@ GtkWidget* ...@@ -75,6 +76,7 @@ GtkWidget*
create_pixmap (GtkWidget *widget, create_pixmap (GtkWidget *widget,
const gchar *filename) const gchar *filename)
{ {
VLC_UNUSED( widget );
gchar *pathname = NULL; gchar *pathname = NULL;
GtkWidget *pixmap; GtkWidget *pixmap;
...@@ -136,7 +138,7 @@ glade_set_atk_action_description (AtkAction *action, ...@@ -136,7 +138,7 @@ glade_set_atk_action_description (AtkAction *action,
for (i = 0; i < n_actions; i++) for (i = 0; i < n_actions; i++)
{ {
if (!strcmp (atk_action_get_name (action, i), action_name)) if (!strcmp (atk_action_get_name (action, i), action_name))
atk_action_set_description (action, i, description) atk_action_set_description (action, i, description);
} }
} }
...@@ -94,7 +94,7 @@ static int Open( vlc_object_t *p_this ) ...@@ -94,7 +94,7 @@ static int Open( vlc_object_t *p_this )
if( i_refcount > 0 ) if( i_refcount > 0 )
{ {
i_refcount++; i_refcount++;
vlc_mutex_unlock( lock ); vlc_mutex_unlock( &gtk_lock );
return VLC_SUCCESS; return VLC_SUCCESS;
} }
...@@ -110,11 +110,11 @@ static int Open( vlc_object_t *p_this ) ...@@ -110,11 +110,11 @@ static int Open( vlc_object_t *p_this )
/* Launch the gtk_main() thread. It will not return until it has /* Launch the gtk_main() thread. It will not return until it has
* called gdk_threads_enter(), which ensures us thread safety. */ * called gdk_threads_enter(), which ensures us thread safety. */
if( vlc_thread_create( p_gtk_main, "gtk_main", GtkMain, if( vlc_thread_create( p_gtk_main, "gtk_main", GtkMain,
VLC_THREAD_PRIORITY_LOW, true ) ) VLC_THREAD_PRIORITY_LOW ) )
{ {
vlc_object_release( p_gtk_main ); vlc_object_release( p_gtk_main );
i_refcount--; i_refcount--;
vlc_mutex_unlock( lock ); vlc_mutex_unlock( &gtk_lock );
return VLC_ETHREAD; return VLC_ETHREAD;
} }
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment