[vlc-devel] [PATCH] libVLC: rename libvlc_track_description_release

Jean-Baptiste Kempf jb at videolan.org
Wed Sep 21 18:32:04 CEST 2011


This is now libvlc_track_description_list_release, as agreed at the VDD
technical discussion
---
 include/vlc/libvlc_media_player.h |    7 ++++++-
 lib/libvlc.sym                    |    1 +
 lib/media_player.c                |    8 +++++++-
 3 files changed, 14 insertions(+), 2 deletions(-)

diff --git a/include/vlc/libvlc_media_player.h b/include/vlc/libvlc_media_player.h
index 5233ecb..529e0fd 100644
--- a/include/vlc/libvlc_media_player.h
+++ b/include/vlc/libvlc_media_player.h
@@ -816,7 +816,12 @@ LIBVLC_API void libvlc_media_player_navigate( libvlc_media_player_t* p_mi,
  *
  * \param p_track_description the structure to release
  */
-LIBVLC_API void libvlc_track_description_release( libvlc_track_description_t *p_track_description );
+LIBVLC_API void libvlc_track_description_list_release( libvlc_track_description_t *p_track_description );
+
+/**
+ * \deprecated Use libvlc_track_description_list_release instead
+ */
+LIBVLC_DEPRECATED void libvlc_track_description_release( libvlc_track_description_t *p_track_description );
 
 /** \defgroup libvlc_video LibVLC video controls
  * @{
diff --git a/lib/libvlc.sym b/lib/libvlc.sym
index 2c09776..6582a96 100644
--- a/lib/libvlc.sym
+++ b/lib/libvlc.sym
@@ -174,6 +174,7 @@ libvlc_set_user_agent
 libvlc_toggle_fullscreen
 libvlc_toggle_teletext
 libvlc_track_description_release
+libvlc_track_description_list_release
 libvlc_video_get_adjust_float
 libvlc_video_get_adjust_int
 libvlc_video_get_aspect_ratio
diff --git a/lib/media_player.c b/lib/media_player.c
index 02c1570..0fbd2e3 100644
--- a/lib/media_player.c
+++ b/lib/media_player.c
@@ -1344,7 +1344,7 @@ libvlc_track_description_t *
                 malloc( sizeof( libvlc_track_description_t ) );
             if ( !p_actual )
             {
-                libvlc_track_description_release( p_track_description );
+                libvlc_track_description_list_release( p_track_description );
                 libvlc_printerr( "Not enough memory" );
                 goto end;
             }
@@ -1365,8 +1365,14 @@ end:
     return p_track_description;
 }
 
+// Deprecated alias for libvlc_track_description_list_release
 void libvlc_track_description_release( libvlc_track_description_t *p_td )
 {
+    libvlc_track_description_list_release( p_td );
+}
+
+void libvlc_track_description_list_release( libvlc_track_description_t *p_td )
+{
     libvlc_track_description_t *p_actual, *p_before;
     p_actual = p_td;
 
-- 
1.7.7.rc1




More information about the vlc-devel mailing list