mirror of
https://github.com/glest/glest-source.git
synced 2025-08-26 17:34:24 +02:00
- release media list player if used
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user