]> git.sesse.net Git - vlc/commitdiff
Add version infos to new LibVLC functions
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Jun 2010 14:10:33 +0000 (17:10 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 27 Jun 2010 14:10:33 +0000 (17:10 +0300)
include/vlc/libvlc.h
include/vlc/libvlc_media_player.h
test/libvlc/media_player.c

index eb6414aafce228716eb07cc09a7bdb24ba8f71f7..d4151eb0f526590298183a0373d30589028a58b5 100644 (file)
@@ -67,8 +67,9 @@ extern "C" {
  * You can create one (or more) instance(s) of LibVLC in a given process,
  * with libvlc_new() and destroy them with libvlc_release().
  *
- * \version This documents LibVLC version 1.1.
- * Earlier versions (0.9 and 1.0) are <b>not</b> compatible.
+ * \version Unless otherwise stated, these functions are available
+ * from LibVLC versions numbered 1.1.0 or more.
+ * Earlier versions (0.9.x and 1.0.x) are <b>not</b> compatible.
  * @{
  */
 
index 435bb4f9df3b981457ea5cb63c9fd7345127b0e3..10dd6d0b95d6db5e2e8d43527b395d8092b59377 100644 (file)
@@ -181,6 +181,7 @@ VLC_PUBLIC_API int libvlc_media_player_play ( libvlc_media_player_t *p_mi );
  *
  * \param mp the Media Player
  * \param do_pause play/resume if zero, pause if non-zero
+ * \version LibVLC 1.1.1 or later
  */
 VLC_PUBLIC_API void libvlc_media_player_set_pause ( libvlc_media_player_t *mp,
                                                     int do_pause );
@@ -949,6 +950,7 @@ enum libvlc_video_adjust_option_t {
  *
  * \param p_mi libvlc media player instance
  * \param option adjust option to get, values of libvlc_video_adjust_option_t
+ * \version LibVLC 1.1.1 and later.
  */
 VLC_PUBLIC_API int libvlc_video_get_adjust_int( libvlc_media_player_t *p_mi,
                                                 unsigned option );
@@ -962,6 +964,7 @@ VLC_PUBLIC_API int libvlc_video_get_adjust_int( libvlc_media_player_t *p_mi,
  * \param p_mi libvlc media player instance
  * \param option adust option to set, values of libvlc_video_adjust_option_t
  * \param value adjust option value
+ * \version LibVLC 1.1.1 and later.
  */
 VLC_PUBLIC_API void libvlc_video_set_adjust_int( libvlc_media_player_t *p_mi,
                                                  unsigned option, int value );
@@ -971,6 +974,7 @@ VLC_PUBLIC_API void libvlc_video_set_adjust_int( libvlc_media_player_t *p_mi,
  *
  * \param p_mi libvlc media player instance
  * \param option adjust option to get, values of libvlc_video_adjust_option_t
+ * \version LibVLC 1.1.1 and later.
  */
 VLC_PUBLIC_API float libvlc_video_get_adjust_float( libvlc_media_player_t *p_mi,
                                                     unsigned option );
@@ -982,6 +986,7 @@ VLC_PUBLIC_API float libvlc_video_get_adjust_float( libvlc_media_player_t *p_mi,
  * \param p_mi libvlc media player instance
  * \param option adust option to set, values of libvlc_video_adjust_option_t
  * \param value adjust option value
+ * \version LibVLC 1.1.1 and later.
  */
 VLC_PUBLIC_API void libvlc_video_set_adjust_float( libvlc_media_player_t *p_mi,
                                                    unsigned option, float value );
index 0e028582ea157f3b1a355d343718bb4fa7a4f5cd..258d825f0289c0870f843901ab459ea379586cb1 100644 (file)
@@ -150,17 +150,21 @@ static void test_media_player_pause_stop(const char** argv, int argc)
 
     libvlc_media_release (md);
 
-    libvlc_media_player_play (mi);
+    test_audio_video(mi);
 
+    libvlc_media_player_play (mi);
     log ("Waiting for playing\n");
-
     wait_playing (mi);
+    test_audio_video(mi);
 
     libvlc_media_player_set_pause (mi, true);
     log ("Waiting for pause\n");
     wait_paused (mi);
+    test_audio_video(mi);
 
     libvlc_media_player_stop (mi);
+    test_audio_video(mi);
+
     libvlc_media_player_release (mi);
     libvlc_release (vlc);
 }