[vlc-devel] commit: vlc_current_object: remove, vlc_object_get does the same thing ( Rémi Denis-Courmont )

git version control git at videolan.org
Sat May 31 22:29:20 CEST 2008


vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat May 31 23:30:58 2008 +0300| [91bf9631ce65c0e5183573810f338fe7cbc7ea1e]

vlc_current_object: remove, vlc_object_get does the same thing

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=91bf9631ce65c0e5183573810f338fe7cbc7ea1e
---

 src/libvlc.c                 |   12 ------------
 src/libvlc.h                 |    1 -
 src/video_output/vout_intf.c |    2 +-
 3 files changed, 1 insertions(+), 14 deletions(-)

diff --git a/src/libvlc.c b/src/libvlc.c
index e8de65d..720dee9 100644
--- a/src/libvlc.c
+++ b/src/libvlc.c
@@ -130,18 +130,6 @@ static int  VerboseCallback( vlc_object_t *, char const *,
 
 static void InitDeviceValues( libvlc_int_t * );
 
-/*****************************************************************************
- * vlc_current_object: return the current object.
- *****************************************************************************
- * If i_object is non-zero, return the corresponding object. Otherwise,
- * return the statically allocated p_vlc object.
- *****************************************************************************/
-libvlc_int_t * vlc_current_object( int i_object )
-{
-    return i_object ? vlc_object_get( i_object ) : p_static_vlc;
-}
-
-
 /**
  * Allocate a libvlc instance, initialize global data if needed
  * It also initializes the threading system
diff --git a/src/libvlc.h b/src/libvlc.h
index fd83455..1998cee 100644
--- a/src/libvlc.h
+++ b/src/libvlc.h
@@ -163,7 +163,6 @@ typedef struct libvlc_global_data_t
 
 
 libvlc_global_data_t *vlc_global (void);
-libvlc_int_t *vlc_current_object (int i_object);
 
 /**
  * Private LibVLC data for each object.
diff --git a/src/video_output/vout_intf.c b/src/video_output/vout_intf.c
index 6485e65..27a515f 100644
--- a/src/video_output/vout_intf.c
+++ b/src/video_output/vout_intf.c
@@ -505,7 +505,7 @@ int vout_Snapshot( vout_thread_t *p_vout, picture_t *p_pic )
 
         /* Destination object-id is following object: */
         i_id = atoi( &val.psz_string[7] );
-        p_dest = ( vlc_object_t* )vlc_current_object( i_id );
+        p_dest = ( vlc_object_t* )vlc_object_get( i_id );
         if( !p_dest )
         {
             msg_Err( p_vout, "Cannot find calling object" );




More information about the vlc-devel mailing list