[vlc-devel] [PATCH 1/7] player: Only restore states for videos
Hugo Beauzée-Luyssen
hugo at beauzee.fr
Mon Jan 6 13:38:44 CET 2020
---
src/player/medialib.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/player/medialib.c b/src/player/medialib.c
index 35cce91f2c..1d2665c17c 100644
--- a/src/player/medialib.c
+++ b/src/player/medialib.c
@@ -37,7 +37,7 @@ vlc_player_input_RestoreMlStates(struct vlc_player_input* input,
if (!ml)
return;
vlc_ml_media_t* media = vlc_ml_get_media_by_mrl( ml, item->psz_uri);
- if (!media)
+ if (!media || media->i_type != VLC_ML_MEDIA_TYPE_VIDEO)
return;
if (vlc_ml_media_get_all_playback_pref(ml, media->i_id, &input->ml.states) != VLC_SUCCESS)
return;
--
2.20.1
More information about the vlc-devel
mailing list