- release media list player if used

This commit is contained in:
Mark Vejvoda
2012-05-21 20:11:27 +00:00
parent 7f1a8693ac
commit 29ed59de0b

View File

@@ -927,7 +927,12 @@ void VideoPlayer::closePlayer() {
#else
libvlc_media_player_stop(ctxPtr->mp);
#endif
if(ctxPtr->mlp != NULL) {
libvlc_media_list_player_release(ctxPtr->mlp);
ctxPtr->mlp = NULL;
}
libvlc_media_player_release(ctxPtr->mp);
ctxPtr->mp = NULL;
libvlc_release(ctxPtr->libvlc);
}
#endif