[vlc-devel] commit: Never rename an object post attach & un-deprecated find_name ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sun Aug 23 21:39:02 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Sun Aug 23 22:25:28 2009 +0300| [df85fc8b8befb1a0cc8b8007d99d82bfac26b249] | committer: Rémi Denis-Courmont
Never rename an object post attach & un-deprecated find_name
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=df85fc8b8befb1a0cc8b8007d99d82bfac26b249
---
include/vlc_objects.h | 3 ---
src/libvlc.c | 2 --
src/modules/modules.c | 8 --------
3 files changed, 0 insertions(+), 13 deletions(-)
diff --git a/include/vlc_objects.h b/include/vlc_objects.h
index 804fc20..e2fda54 100644
--- a/include/vlc_objects.h
+++ b/include/vlc_objects.h
@@ -75,9 +75,6 @@ VLC_EXPORT( void, __vlc_object_detach, ( vlc_object_t * ) );
__attribute__((deprecated))
#endif
VLC_EXPORT( void *, __vlc_object_find, ( vlc_object_t *, int, int ) );
-#if defined (__GNUC__) && !defined __cplusplus
-__attribute__((deprecated))
-#endif
VLC_EXPORT( vlc_object_t *, vlc_object_find_name, ( vlc_object_t *, const char *, int ) );
VLC_EXPORT( void *, __vlc_object_hold, ( vlc_object_t * ) );
VLC_EXPORT( void, __vlc_object_release, ( vlc_object_t * ) );
diff --git a/src/libvlc.c b/src/libvlc.c
index 7e1613d..9860d54 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -263,8 +263,6 @@ libvlc_int_t * libvlc_InternalCreate( void )
priv->p_playlist = NULL;
priv->p_dialog_provider = NULL;
priv->p_vlm = NULL;
- /* Avoid being called "memcpy":*/
- vlc_internals(p_libvlc)->psz_object_name = strdup( "libvlc" );
/* Initialize message queue */
msg_Create( p_libvlc );
diff --git a/src/modules/modules.c b/src/modules/modules.c
index 6a0aa47..5e4a0bf 100644
--- a/src/modules/modules.c
+++ b/src/modules/modules.c
@@ -607,14 +607,6 @@ found_shortcut:
{
msg_Dbg( p_this, "using %s module \"%s\"",
psz_capability, p_module->psz_object_name );
- if( !vlc_internals(p_this)->psz_object_name )
- {
- /* This assumes that p_this is the object which will be using the
- * module. That's not always the case ... but it is in most cases.
- */
- vlc_internals(p_this)->psz_object_name =
- strdup( psz_alias ? psz_alias : p_module->psz_object_name );
- }
}
else if( count == 0 )
{
More information about the vlc-devel
mailing list