Commit 5aded14b authored by Rafaël Carré's avatar Rafaël Carré

configure.ac: typo, fix #1204

parent 5183b07c
...@@ -1508,7 +1508,7 @@ AS_IF([test "${CFLAGS_TUNING}"], ...@@ -1508,7 +1508,7 @@ AS_IF([test "${CFLAGS_TUNING}"],
dnl dnl
dnl x86 accelerations dnl x86 accelerations
dnl dnl
if test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "x86" -o "${host_cpu}" = "i386" -o "${host_cpu}"="i486" -o "${host_cpu}" = "x86_64" if test "${host_cpu}" = "i686" -o "${host_cpu}" = "i586" -o "${host_cpu}" = "x86" -o "${host_cpu}" = "i386" -o "${host_cpu}" = "i486" -o "${host_cpu}" = "x86_64"
then then
ARCH="${ARCH} mmx" ARCH="${ARCH} mmx"
VLC_ADD_PLUGINS([${ACCEL_MODULES}]) VLC_ADD_PLUGINS([${ACCEL_MODULES}])
......
...@@ -182,21 +182,33 @@ def Loop(widget): ...@@ -182,21 +182,33 @@ def Loop(widget):
# update status display # update status display
def update(widget): def update(widget):
item = tracklist.GetMetadata(tracklist.GetCurrentTrack()) Track = player.GetMetadata()
vol.set_value(player.VolumeGet()) vol.set_value(player.VolumeGet())
try: try:
a = item["artist"] a = Track["artist"]
except: a = "" except:
a = ""
try: try:
t = item["title"] t = Track["title"]
except: t = "" except:
t = ""
if t == "": if t == "":
try: try:
t = item["URI"] t = Track["URI"]
except: except:
t = "" t = ""
l_artist.set_text(a) l_artist.set_text(a)
l_title.set_text(t) l_title.set_text(t)
try:
length = Track["length"]
except:
length = 0
if length > 0:
time_s.set_range(0,Track["length"])
time_s.set_sensitive(True)
else:
# disable the position scale if length isn't available
time_s.set_sensitive(False)
GetPlayStatus(0) GetPlayStatus(0)
# callback for volume change # callback for volume change
...@@ -211,7 +223,10 @@ def timechange(widget, x=None, y=None): ...@@ -211,7 +223,10 @@ def timechange(widget, x=None, y=None):
def timeset(): def timeset():
global playing global playing
if playing == True: if playing == True:
try:
time_s.set_value(player.PositionGet()) time_s.set_value(player.PositionGet())
except:
playing = False
return True return True
# toggle simple/full display # toggle simple/full display
......
/***************************************************************************** /*****************************************************************************
* rc.c : remote control stdin/stdout module for vlc * rc.c : remote control stdin/stdout module for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 2004 - 2005 the VideoLAN team * Copyright (C) 2004-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Author: Peter Surda <shurdeek@panorama.sth.ac.at> * Author: Peter Surda <shurdeek@panorama.sth.ac.at>
...@@ -1941,16 +1941,27 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size ) ...@@ -1941,16 +1941,27 @@ vlc_bool_t ReadCommand( intf_thread_t *p_intf, char *p_buffer, int *pi_size )
} }
#endif #endif
while( !intf_ShouldDie( p_intf ) && *pi_size < MAX_LINE_LENGTH && int i_socket = p_intf->p_sys->i_socket == -1 ? 0 : p_intf->p_sys->i_socket;
(i_read = net_Read( p_intf, p_intf->p_sys->i_socket == -1 ? /* 0 == STDIN_FILENO */
0 /*STDIN_FILENO*/ : p_intf->p_sys->i_socket, NULL,
(uint8_t *)p_buffer + *pi_size, 1, VLC_FALSE ) ) > 0 ) while( !intf_ShouldDie( p_intf ) && *pi_size < MAX_LINE_LENGTH )
{
i_read = net_Read( p_intf, i_socket, NULL,
(uint8_t *)p_buffer + *pi_size, 1, VLC_FALSE );
if( i_read > 0 )
{ {
if( p_buffer[ *pi_size ] == '\r' || p_buffer[ *pi_size ] == '\n' ) if( p_buffer[ *pi_size ] == '\r' || p_buffer[ *pi_size ] == '\n' )
break; break;
(*pi_size)++; (*pi_size)++;
} }
else if( i_read == 0 )
break;
else if( errno != EINTR )
/* we try again if a system call was interrupted */
break;
}
/* Connection closed */ /* Connection closed */
if( i_read <= 0 ) if( i_read <= 0 )
......
/***************************************************************************** /*****************************************************************************
* notify.c : libnotify notification plugin * notify.c : libnotify notification plugin
***************************************************************************** *****************************************************************************
* Copyright (C) 2006 the VideoLAN team * Copyright (C) 2006-2007 the VideoLAN team
* $Id$ * $Id$
* *
* Authors: Christophe Mutricy <xtophe -at- videolan -dot- org> * Authors: Christophe Mutricy <xtophe -at- videolan -dot- org>
......
...@@ -267,6 +267,8 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv, ...@@ -267,6 +267,8 @@ net_ReadInner (vlc_object_t *restrict p_this, unsigned fdc, const int *fdv,
#if defined(WIN32) || defined(UNDER_CE) #if defined(WIN32) || defined(UNDER_CE)
WSASetLastError (WSAEINTR); WSASetLastError (WSAEINTR);
#else #else
if( p_this->b_die ) printf("b_die\n");
else printf("p_libvlc->b_die\n");
errno = EINTR; errno = EINTR;
#endif #endif
goto error; goto error;
......
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