Commit 180fef5e authored by Filippo Carone's avatar Filippo Carone

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

parent 29a112b6
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment