mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
fix audio mute during loop
This commit is contained in:
parent
5e9c296fe9
commit
d1d622bd93
|
@ -264,6 +264,10 @@ void VideoVlcComponent::handleLooping()
|
||||||
libvlc_state_t state = libvlc_media_player_get_state(mMediaPlayer);
|
libvlc_state_t state = libvlc_media_player_get_state(mMediaPlayer);
|
||||||
if (state == libvlc_Ended)
|
if (state == libvlc_Ended)
|
||||||
{
|
{
|
||||||
|
if (!Settings::getInstance()->getBool("VideoAudio"))
|
||||||
|
{
|
||||||
|
libvlc_audio_set_mute(mMediaPlayer, 1);
|
||||||
|
}
|
||||||
//libvlc_media_player_set_position(mMediaPlayer, 0.0f);
|
//libvlc_media_player_set_position(mMediaPlayer, 0.0f);
|
||||||
libvlc_media_player_set_media(mMediaPlayer, mMedia);
|
libvlc_media_player_set_media(mMediaPlayer, mMedia);
|
||||||
libvlc_media_player_play(mMediaPlayer);
|
libvlc_media_player_play(mMediaPlayer);
|
||||||
|
|
Loading…
Reference in a new issue