Checks ncursesw/curses.h presence
authorRafaël Carré <funman@videolan.org>
Thu, 13 Sep 2007 19:50:32 +0000 (19:50 +0000)
committerRafaël Carré <funman@videolan.org>
Thu, 13 Sep 2007 19:50:32 +0000 (19:50 +0000)
configure.ac
extras/mpris.py
src/playlist/engine.c

index 911eaf0..1f852d0 100644 (file)
@@ -5312,8 +5312,10 @@ dnl
 AC_ARG_ENABLE(ncurses,
   [  --enable-ncurses        ncurses interface support (default disabled)],
   [if test "${enable_ncurses}" = "yes"; then
 AC_ARG_ENABLE(ncurses,
   [  --enable-ncurses        ncurses interface support (default disabled)],
   [if test "${enable_ncurses}" = "yes"; then
-     VLC_ADD_PLUGINS([ncurses])
-     VLC_ADD_LDFLAGS([ncurses],[-lncursesw])
+     AC_CHECK_HEADERS(ncursesw/curses.h,[
+       VLC_ADD_PLUGINS([ncurses])
+       VLC_ADD_LDFLAGS([ncurses],[-lncursesw])
+     ])
    fi])
 
 dnl
    fi])
 
 dnl
index f5948df..b871052 100755 (executable)
@@ -222,9 +222,12 @@ def tray_button(widget):
         window.move(position[0], position[1])
         window.show()
 
         window.move(position[0], position[1])
         window.show()
 
-#ui setup
-xml = gtk.glade.XML('mpris.glade')
+#loads glade file from the directory where the script is,
+#so we can use /path/to/mpris.py to execute it.
+import sys
+xml = gtk.glade.XML(os.path.dirname(sys.argv[0]) + '/mpris.glade')
 
 
+#ui setup
 bt_close    = xml.get_widget('close')
 bt_quit     = xml.get_widget('quit')
 bt_file     = xml.get_widget('ChooseFile')
 bt_close    = xml.get_widget('close')
 bt_quit     = xml.get_widget('quit')
 bt_file     = xml.get_widget('ChooseFile')
index 1c9d8f4..4dcbead 100644 (file)
@@ -489,7 +489,7 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
                 return;
             }
         }
                 return;
             }
         }
-
+        printf( "pointer playlist XX: %p\n", p_current->lock.p_this );
         p_current = p_obj->pp_waiting[0];
         REMOVE_ELEM( p_obj->pp_waiting, p_obj->i_waiting, 0 );
         vlc_mutex_unlock( &p_obj->object_lock );
         p_current = p_obj->pp_waiting[0];
         REMOVE_ELEM( p_obj->pp_waiting, p_obj->i_waiting, 0 );
         vlc_mutex_unlock( &p_obj->object_lock );