[vlc-commits] audio: add test for the new audio device functions

Rémi Denis-Courmont git at videolan.org
Thu May 15 15:50:49 CEST 2014


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu May 15 21:47:35 2014 +0800| [d7420aadc69a1bcfcce2dcb64cc2a844379fb5e6] | committer: Rémi Denis-Courmont

audio: add test for the new audio device functions

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

 test/libvlc/media_player.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/test/libvlc/media_player.c b/test/libvlc/media_player.c
index 258d825..43dd44c 100644
--- a/test/libvlc/media_player.c
+++ b/test/libvlc/media_player.c
@@ -71,6 +71,13 @@ static void test_audio_video(libvlc_media_player_t *mp)
     libvlc_video_set_scale(mp, 0.);
     libvlc_video_set_scale(mp, 0.); /* no-op */
     assert(libvlc_video_get_scale(mp) == 0.);
+
+    libvlc_audio_output_device_t *aouts = libvlc_audio_output_device_enum(mp);
+    for (libvlc_audio_output_device_t *e = aouts; e != NULL; e = e->p_next)
+    {
+        libvlc_audio_output_device_set( mp, NULL, e->psz_device );
+    }
+    libvlc_audio_output_device_list_release( aouts );
 }
 
 static void test_media_player_set_media(const char** argv, int argc)



More information about the vlc-commits mailing list