Commit e9300946 authored by Laurent Aimar's avatar Laurent Aimar

* modules: do not take care of the case for shortcuts (fix #1165).

 * playlist : use new input variables.
parent d4665421
......@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.130 2003/08/23 22:49:50 fenrir Exp $
* $Id: modules.c,v 1.131 2003/09/10 11:37:52 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
......@@ -367,8 +367,8 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
for( i_dummy = 0; p_module->pp_shortcuts[i_dummy]; i_dummy++ )
{
if( !strcmp( psz_name,
p_module->pp_shortcuts[i_dummy] ) )
if( !strcasecmp( psz_name,
p_module->pp_shortcuts[i_dummy] ) )
{
/* Found it */
b_trash = VLC_FALSE;
......
......@@ -2,7 +2,7 @@
* playlist.c : Playlist management functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: playlist.c,v 1.49 2003/09/08 12:02:16 zorglub Exp $
* $Id: playlist.c,v 1.50 2003/09/10 11:37:53 fenrir Exp $
*
* Authors: Samuel Hocevar <sam@zoy.org>
*
......@@ -488,6 +488,8 @@ int playlist_Move( playlist_t * p_playlist, int i_pos, int i_newpos)
void playlist_Command( playlist_t * p_playlist, playlist_command_t i_command,
int i_arg )
{
vlc_value_t val;
vlc_mutex_lock( &p_playlist->object_lock );
switch( i_command )
......@@ -508,7 +510,8 @@ int playlist_Move( playlist_t * p_playlist, int i_pos, int i_newpos)
}
if( p_playlist->p_input )
{
input_SetStatus( p_playlist->p_input, INPUT_STATUS_PLAY );
val.i_int = PLAYING_S;
var_Set( p_playlist->p_input, "state", val );
}
break;
......@@ -516,7 +519,8 @@ int playlist_Move( playlist_t * p_playlist, int i_pos, int i_newpos)
p_playlist->i_status = PLAYLIST_PAUSED;
if( p_playlist->p_input )
{
input_SetStatus( p_playlist->p_input, INPUT_STATUS_PAUSE );
val.i_int = PAUSE_S;
var_Set( p_playlist->p_input, "state", val );
}
break;
......
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