[vlc-commits] commit: media list player: return NothingSpecial on is_playing if media instance is null ( Filippo Carone )

git at videolan.org git at videolan.org
Tue Aug 24 18:02:21 CEST 2010


vlc | branch: master | Filippo Carone <littlejohn at videolan.org> | Tue Aug 24 16:57:42 2010 +0200| [180fef5efbb7d0fed04bd79f5a72746ef4b37712] | committer: Filippo Carone 

media list player: return NothingSpecial on is_playing if media instance is null

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

 src/control/media_list_player.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/control/media_list_player.c b/src/control/media_list_player.c
index c0e13c8..a6d5098 100644
--- a/src/control/media_list_player.c
+++ b/src/control/media_list_player.c
@@ -607,6 +607,10 @@ void libvlc_media_list_player_pause(libvlc_media_list_player_t * p_mlp)
 int
 libvlc_media_list_player_is_playing(libvlc_media_list_player_t * p_mlp)
 {
+    if (!p_mlp->p_mi)
+    {
+        return libvlc_NothingSpecial;
+    }
     libvlc_state_t state = libvlc_media_player_get_state(p_mlp->p_mi);
     return (state == libvlc_Opening) || (state == libvlc_Buffering) ||
            (state == libvlc_Playing);



More information about the vlc-commits mailing list