mirror of
https://github.com/glest/glest-source.git
synced 2025-08-27 17:59:48 +02:00
- release media list player if used
This commit is contained in:
@@ -927,7 +927,12 @@ void VideoPlayer::closePlayer() {
|
|||||||
#else
|
#else
|
||||||
libvlc_media_player_stop(ctxPtr->mp);
|
libvlc_media_player_stop(ctxPtr->mp);
|
||||||
#endif
|
#endif
|
||||||
|
if(ctxPtr->mlp != NULL) {
|
||||||
|
libvlc_media_list_player_release(ctxPtr->mlp);
|
||||||
|
ctxPtr->mlp = NULL;
|
||||||
|
}
|
||||||
libvlc_media_player_release(ctxPtr->mp);
|
libvlc_media_player_release(ctxPtr->mp);
|
||||||
|
ctxPtr->mp = NULL;
|
||||||
libvlc_release(ctxPtr->libvlc);
|
libvlc_release(ctxPtr->libvlc);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user