Commit d699c5c3 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Remove VLC_OBJECT_LIBVLC

parent c48296e1
...@@ -32,7 +32,6 @@ ...@@ -32,7 +32,6 @@
*/ */
/* Object types */ /* Object types */
#define VLC_OBJECT_LIBVLC (-2)
#define VLC_OBJECT_INTF (-4) #define VLC_OBJECT_INTF (-4)
#define VLC_OBJECT_PLAYLIST (-5) #define VLC_OBJECT_PLAYLIST (-5)
#define VLC_OBJECT_INPUT (-7) #define VLC_OBJECT_INPUT (-7)
......
...@@ -89,8 +89,7 @@ static int vlc_object_type_from_string( const char *psz_name ) ...@@ -89,8 +89,7 @@ static int vlc_object_type_from_string( const char *psz_name )
int i_type; int i_type;
const char *psz_name; const char *psz_name;
} pp_objects[] = } pp_objects[] =
{ { VLC_OBJECT_LIBVLC, "libvlc" }, { { VLC_OBJECT_INTF, "intf" },
{ VLC_OBJECT_INTF, "intf" },
{ VLC_OBJECT_INPUT, "input" }, { VLC_OBJECT_INPUT, "input" },
{ VLC_OBJECT_DECODER, "decoder" }, { VLC_OBJECT_DECODER, "decoder" },
{ VLC_OBJECT_VOUT, "vout" }, { VLC_OBJECT_VOUT, "vout" },
......
...@@ -256,7 +256,7 @@ libvlc_int_t * libvlc_InternalCreate( void ) ...@@ -256,7 +256,7 @@ libvlc_int_t * libvlc_InternalCreate( void )
/* Allocate a libvlc instance object */ /* Allocate a libvlc instance object */
p_libvlc = __vlc_custom_create( NULL, sizeof (*priv), p_libvlc = __vlc_custom_create( NULL, sizeof (*priv),
VLC_OBJECT_LIBVLC, "libvlc" ); VLC_OBJECT_GENERIC, "libvlc" );
if( p_libvlc != NULL ) if( p_libvlc != NULL )
i_instances++; i_instances++;
vlc_mutex_unlock( lock ); vlc_mutex_unlock( lock );
......
...@@ -183,8 +183,8 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size, ...@@ -183,8 +183,8 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
vlc_internals (p_priv->prev)->next = p_new; vlc_internals (p_priv->prev)->next = p_new;
libvlc_unlock (p_new->p_libvlc); libvlc_unlock (p_new->p_libvlc);
if( i_type == VLC_OBJECT_LIBVLC ) if (p_new == VLC_OBJECT(p_new->p_libvlc))
{ { /* TODO: should be in src/libvlc.c */
int canc = vlc_savecancel (); int canc = vlc_savecancel ();
var_Create( p_new, "list", VLC_VAR_STRING | VLC_VAR_ISCOMMAND ); var_Create( p_new, "list", VLC_VAR_STRING | VLC_VAR_ISCOMMAND );
var_AddCallback( p_new, "list", DumpCommand, NULL ); var_AddCallback( p_new, "list", DumpCommand, NULL );
......
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