vlc/libvlc.h: Set the return value of the libvlc_*_is_*() call to vlc_bool_t.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 25 Dec 2007 23:34:52 +0000 (23:34 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 25 Dec 2007 23:34:52 +0000 (23:34 +0000)
include/vlc/libvlc.h
src/control/media_discoverer.c
src/control/media_list_player.c

index efd5215..58a6956 100644 (file)
@@ -719,7 +719,7 @@ VLC_PUBLIC_API void
     libvlc_media_list_player_pause( libvlc_media_list_player_t * p_mlp,
                                    libvlc_exception_t * p_e );
 
     libvlc_media_list_player_pause( libvlc_media_list_player_t * p_mlp,
                                    libvlc_exception_t * p_e );
 
-VLC_PUBLIC_API int
+VLC_PUBLIC_API vlc_bool_t
     libvlc_media_list_player_is_playing( libvlc_media_list_player_t * p_mlp,
                                          libvlc_exception_t * p_e );
 
     libvlc_media_list_player_is_playing( libvlc_media_list_player_t * p_mlp,
                                          libvlc_exception_t * p_e );
 
@@ -1055,7 +1055,7 @@ VLC_PUBLIC_API libvlc_media_list_t * libvlc_media_discoverer_media_list( libvlc_
 VLC_PUBLIC_API libvlc_event_manager_t *
         libvlc_media_discoverer_event_manager( libvlc_media_discoverer_t * p_mdis );
 
 VLC_PUBLIC_API libvlc_event_manager_t *
         libvlc_media_discoverer_event_manager( libvlc_media_discoverer_t * p_mdis );
 
-VLC_PUBLIC_API int
+VLC_PUBLIC_API vlc_bool_t
         libvlc_media_discoverer_is_running( libvlc_media_discoverer_t * p_mdis );
 
 /**@} */
         libvlc_media_discoverer_is_running( libvlc_media_discoverer_t * p_mdis );
 
 /**@} */
index d3a8a05..507e79b 100644 (file)
@@ -215,7 +215,7 @@ libvlc_media_discoverer_event_manager( libvlc_media_discoverer_t * p_mdis )
 /**************************************************************************
  * running (Public)
  **************************************************************************/
 /**************************************************************************
  * running (Public)
  **************************************************************************/
-int
+vlc_bool_t
 libvlc_media_discoverer_is_running( libvlc_media_discoverer_t * p_mdis )
 {
     return p_mdis->running;
 libvlc_media_discoverer_is_running( libvlc_media_discoverer_t * p_mdis )
 {
     return p_mdis->running;
index 094b97e..7fc5166 100644 (file)
@@ -338,8 +338,9 @@ void libvlc_media_list_player_pause( libvlc_media_list_player_t * p_mlp,
 /**************************************************************************
  *        is_playing (Public)
  **************************************************************************/
 /**************************************************************************
  *        is_playing (Public)
  **************************************************************************/
-int libvlc_media_list_player_is_playing( libvlc_media_list_player_t * p_mlp,
-                                         libvlc_exception_t * p_e )
+vlc_bool_t
+libvlc_media_list_player_is_playing( libvlc_media_list_player_t * p_mlp,
+                                     libvlc_exception_t * p_e )
 {
     libvlc_state_t state = libvlc_media_instance_get_state( p_mlp->p_mi, p_e );
     return (state == libvlc_Opening) || (state == libvlc_Buffering) ||
 {
     libvlc_state_t state = libvlc_media_instance_get_state( p_mlp->p_mi, p_e );
     return (state == libvlc_Opening) || (state == libvlc_Buffering) ||