Commit e9364f5c authored by Sam Hocevar's avatar Sam Hocevar

* ./src/misc/variables.c: callbacks are now called after the variable has

    been modified. Maybe we'll need the other type, too, but this change will
    make things simpler in aout3.

  * ./src/playlist/playlist.c: removed two unused variables.
  * ./src/misc/modules.c: removed a debug message I had forgotten.
  * ./src/misc/modules_plugin.h.in: fixed a typo (thanks bozo).
parent cae5489a
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions * modules.c : Builtin and plugin modules management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.99 2002/10/29 18:57:40 sam Exp $ * $Id: modules.c,v 1.100 2002/10/31 11:16:30 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com> * Ethan C. Baldridge <BaldridgeE@cadmus.com>
...@@ -423,7 +423,6 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability, ...@@ -423,7 +423,6 @@ module_t * __module_Need( vlc_object_t *p_this, const char *psz_capability,
p_tmp = p_first; p_tmp = p_first;
while( p_tmp != NULL ) while( p_tmp != NULL )
{ {
msg_Dbg(p_this,"candidate: %s\n", p_tmp->p_module->psz_object_name);
vlc_object_yield( p_tmp->p_module ); vlc_object_yield( p_tmp->p_module );
p_tmp = p_tmp->p_next; p_tmp = p_tmp->p_next;
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules_plugin.h : Plugin management functions used by the core application. * modules_plugin.h : Plugin management functions used by the core application.
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules_plugin.h.in,v 1.4 2002/09/30 11:05:42 sam Exp $ * $Id: modules_plugin.h.in,v 1.5 2002/10/31 11:16:30 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -46,7 +46,7 @@ static int module_load( const char * psz_filename, module_handle_t * handle ) ...@@ -46,7 +46,7 @@ static int module_load( const char * psz_filename, module_handle_t * handle )
/* We should NOT open modules with RTLD_GLOBAL, or we are going to get /* We should NOT open modules with RTLD_GLOBAL, or we are going to get
* namespace collisions when two modules have common public symbols, * namespace collisions when two modules have common public symbols,
* but ALSA is being a pest here. */ * but ALSA is being a pest here. */
if( strstr( psz_filename, "alsa" LIBEXT ) ) if( strstr( psz_filename, "alsa" ) )
{ {
*handle = dlopen( psz_filename, RTLD_NOW | RTLD_GLOBAL ); *handle = dlopen( psz_filename, RTLD_NOW | RTLD_GLOBAL );
return( *handle == NULL ); return( *handle == NULL );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* variables.c: routines for object variables handling * variables.c: routines for object variables handling
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: variables.c,v 1.12 2002/10/29 13:38:37 sam Exp $ * $Id: variables.c,v 1.13 2002/10/31 11:16:30 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -477,6 +477,9 @@ int __var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val ) ...@@ -477,6 +477,9 @@ int __var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val )
/* Check boundaries and list */ /* Check boundaries and list */
CheckValue( p_var, &val ); CheckValue( p_var, &val );
/* Set the variable */
p_var->val = val;
/* Deal with callbacks. Tell we're in a callback, release the lock, /* Deal with callbacks. Tell we're in a callback, release the lock,
* call stored functions, retake the lock. */ * call stored functions, retake the lock. */
if( p_var->i_entries ) if( p_var->i_entries )
...@@ -509,9 +512,6 @@ int __var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val ) ...@@ -509,9 +512,6 @@ int __var_Set( vlc_object_t *p_this, const char *psz_name, vlc_value_t val )
p_var->b_incallback = VLC_FALSE; p_var->b_incallback = VLC_FALSE;
} }
/* Set the variable */
p_var->val = val;
/* Free data if needed */ /* Free data if needed */
p_var->pf_free( &oldval ); p_var->pf_free( &oldval );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.c : Playlist management functions * playlist.c : Playlist management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: playlist.c,v 1.15 2002/10/29 13:22:48 sam Exp $ * $Id: playlist.c,v 1.16 2002/10/31 11:16:29 sam Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -136,8 +136,6 @@ int playlist_Add( playlist_t *p_playlist, const char * psz_target, ...@@ -136,8 +136,6 @@ int playlist_Add( playlist_t *p_playlist, const char * psz_target,
if( !(i_mode & PLAYLIST_REPLACE) if( !(i_mode & PLAYLIST_REPLACE)
|| i_pos < 0 || i_pos >= p_playlist->i_size ) || i_pos < 0 || i_pos >= p_playlist->i_size )
{ {
int i_index;
/* Additional boundary checks */ /* Additional boundary checks */
if( i_mode & PLAYLIST_APPEND ) if( i_mode & PLAYLIST_APPEND )
{ {
...@@ -194,8 +192,6 @@ int playlist_Add( playlist_t *p_playlist, const char * psz_target, ...@@ -194,8 +192,6 @@ int playlist_Add( playlist_t *p_playlist, const char * psz_target,
*****************************************************************************/ *****************************************************************************/
int playlist_Delete( playlist_t * p_playlist, int i_pos ) int playlist_Delete( playlist_t * p_playlist, int i_pos )
{ {
int i_index;
vlc_mutex_lock( &p_playlist->object_lock ); vlc_mutex_lock( &p_playlist->object_lock );
if( i_pos >= 0 && i_pos < p_playlist->i_size ) if( i_pos >= 0 && i_pos < p_playlist->i_size )
......
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