[vlc-devel] commit: Remove the object ID field ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Sep 20 16:25:55 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Sep 20 16:48:54 2008 +0300| [2817b1e41d8c5ea0cfe52493751921403b3e0e13] | committer: Rémi Denis-Courmont
Remove the object ID field
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=2817b1e41d8c5ea0cfe52493751921403b3e0e13
---
include/vlc_common.h | 1 -
src/control/core.c | 2 +-
src/misc/objects.c | 2 --
3 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/include/vlc_common.h b/include/vlc_common.h
index b52c80f..a8308b8 100644
--- a/include/vlc_common.h
+++ b/include/vlc_common.h
@@ -522,7 +522,6 @@ typedef int ( * vlc_callback_t ) ( vlc_object_t *, /* variable's object */
* these members are common for all vlc objects \
*/ \
/**@{*/ \
- int i_object_id; \
int i_object_type; \
const char *psz_object_type; \
char *psz_object_name; \
diff --git a/src/control/core.c b/src/control/core.c
index 9db5614..843410b 100644
--- a/src/control/core.c
+++ b/src/control/core.c
@@ -187,7 +187,7 @@ void libvlc_wait( libvlc_instance_t *p_i )
int libvlc_get_vlc_id( libvlc_instance_t *p_instance )
{
- return p_instance->p_libvlc_int->i_object_id;
+ return 1;
}
const char * libvlc_get_version(void)
diff --git a/src/misc/objects.c b/src/misc/objects.c
index f806c61..5216552 100644
--- a/src/misc/objects.c
+++ b/src/misc/objects.c
@@ -89,7 +89,6 @@ static void vlc_object_dump( vlc_object_t *p_this );
* Local structure lock
*****************************************************************************/
static vlc_mutex_t structure_lock;
-static unsigned object_counter = 0;
static void close_nocancel (int fd)
{
@@ -179,7 +178,6 @@ void *__vlc_custom_create( vlc_object_t *p_this, size_t i_size,
p_priv->prev = vlc_internals (p_this)->prev;
vlc_internals (p_this)->prev = p_new;
vlc_internals (p_priv->prev)->next = p_new;
- p_new->i_object_id = object_counter++; /* fetch THEN increment */
vlc_mutex_unlock( &structure_lock );
if( i_type == VLC_OBJECT_LIBVLC )
More information about the vlc-devel
mailing list