Commit a5d19ec4 authored by Jean-Paul Saman's avatar Jean-Paul Saman

Updating slider only once a second now.

parent 294ba69a
......@@ -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
......@@ -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>
*
......@@ -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();
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 */
* 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();
......
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