]> git.sesse.net Git - vlc/commitdiff
Updating slider only once a second now.
authorJean-Paul Saman <jpsaman@videolan.org>
Fri, 17 Jan 2003 18:19:11 +0000 (18:19 +0000)
committerJean-Paul Saman <jpsaman@videolan.org>
Fri, 17 Jan 2003 18:19:11 +0000 (18:19 +0000)
ipkg/rules.gpe
modules/gui/familiar/familiar.c

index 554807095df04772fbb38a15f6d7206551fd9994..b4acca68e3f2696ed614e8d8f2ff225b59e6bf24 100755 (executable)
@@ -53,7 +53,8 @@ config:
                --infodir=$${prefix}/share/info \
                --host=arm-linux \
                --target=arm-linux \
-               $(shell echo $(CONFIG_FLAGS))
+               $(shell echo $(CONFIG_FLAGS)) \
+               LDFLAGS=/usr/local/arm/2.95.3/arm-linux/lib
 
 build:
 # This is ugly -- I know
@@ -85,5 +86,5 @@ install-plugins: install
        find ./ -name *.so | xargs cp $1 ${PKGDIR}/usr/lib/vlc/ 
        $(STRIP) ${PKGDIR}/usr/lib/vlc/*.so
 
-.PHONY: build clean install
+.PHONY: build clean install install-plugins
 
index 958a5209fd0d09677abf0890651d7903e1b3192d..1f4b02db3c617b4b3fc7c08223d4176c69b2243d 100644 (file)
@@ -2,7 +2,7 @@
  * familiar.c : familiar plugin for vlc
  *****************************************************************************
  * Copyright (C) 2002 VideoLAN
- * $Id: familiar.c,v 1.26 2003/01/12 19:08:09 jpsaman Exp $
+ * $Id: familiar.c,v 1.27 2003/01/17 18:19:11 jpsaman Exp $
  *
  * Authors: Jean-Paul Saman <jpsaman@wxs.nl>
  *
@@ -139,7 +139,7 @@ static void Close( vlc_object_t *p_this )
  *****************************************************************************/
 static void Run( intf_thread_t *p_intf )
 {
-#ifndef NEED_GTK_MAIN 
+#ifndef NEED_GTK_MAIN
     /* gtk_init needs to know the command line. We don't care, so we
      * give it an empty one */
     char  *p_args[] = { "" };
@@ -226,14 +226,20 @@ static void Run( intf_thread_t *p_intf )
         /* Sleep to avoid using all CPU - since some interfaces need to
          * access keyboard events, a 100ms delay is a good compromise */
         gdk_threads_leave();
-        msleep( INTF_IDLE_SLEEP );
+        if (p_intf->p_libvlc->i_cpu & CPU_CAPABILITY_FPU)
+            msleep( INTF_IDLE_SLEEP );
+        else
+            msleep( 1000 );
         gdk_threads_enter();
     }
 #else
     msg_Dbg( p_intf, "Manage GTK keyboard events using timeouts" );
     /* Sleep to avoid using all CPU - since some interfaces needs to access
-     * keyboard events, a 100ms delay is a good compromise */
-    i_dummy = gtk_timeout_add( INTF_IDLE_SLEEP / 1000, (GtkFunction)Manage, p_intf );
+     * keyboard events, a 1000ms delay is a good compromise */
+    if (p_intf->p_libvlc->i_cpu & CPU_CAPABILITY_FPU)
+        i_dummy = gtk_timeout_add( INTF_IDLE_SLEEP / 1000, (GtkFunction)Manage, p_intf );
+    else
+        i_dummy = gtk_timeout_add( 1000, (GtkFunction)Manage, p_intf );
 
     /* Enter Gtk mode */
     gtk_main();