[vlc-devel] [PATCH 1/7] player: Only restore states for videos
Rémi Denis-Courmont
remi at remlab.net
Wed Jan 8 15:08:37 CET 2020
This seems rather arbitrary and I failed to find a rationale in the patch description.
Le 6 janvier 2020 21:38:44 GMT+09:00, "Hugo Beauzée-Luyssen" <hugo at beauzee.fr> a écrit :
>---
> 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
>
>_______________________________________________
>vlc-devel mailing list
>To unsubscribe or modify your subscription options:
>https://mailman.videolan.org/listinfo/vlc-devel
--
Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.videolan.org/pipermail/vlc-devel/attachments/20200108/bb2a60f3/attachment.html>
More information about the vlc-devel
mailing list