[vlc-devel] [PATCH 1/2] medialib: call release functions directly
Steve Lhomme
robux4 at ycbcr.xyz
Tue Jan 19 09:05:01 UTC 2021
Instead of using vlc_ml_release().
---
src/player/medialib.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/player/medialib.c b/src/player/medialib.c
index 64c7bad0dec..26ee49adfb7 100644
--- a/src/player/medialib.c
+++ b/src/player/medialib.c
@@ -50,7 +50,7 @@ vlc_player_input_RestoreMlStates(struct vlc_player_input* input, bool force_pos)
vlc_ml_media_get_all_playback_pref(ml, media->i_id,
&input->ml.states) != VLC_SUCCESS)
{
- vlc_ml_release(media);
+ vlc_ml_media_release(media);
return;
}
@@ -72,7 +72,7 @@ vlc_player_input_RestoreMlStates(struct vlc_player_input* input, bool force_pos)
input->ml.pos = media->f_progress;
}
- vlc_ml_release(media);
+ vlc_ml_media_release(media);
if (!restore_states)
return;
@@ -195,7 +195,7 @@ vlc_player_UpdateMLStates(vlc_player_t *player, struct vlc_player_input* input)
{
if (!vlc_player_UpdateMediaType(input, ml, media))
{
- vlc_ml_release( media );
+ vlc_ml_media_release( media );
return;
}
}
@@ -286,8 +286,8 @@ vlc_player_UpdateMLStates(vlc_player_t *player, struct vlc_player_input* input)
vlc_ml_media_set_all_playback_states(ml, media->i_id, &input->ml.states);
- vlc_ml_release(&input->ml.states);
- vlc_ml_release(media);
+ vlc_ml_playback_states_all_release(&input->ml.states);
+ vlc_ml_media_release(media);
}
void
--
2.29.2
More information about the vlc-devel
mailing list