Skip to content
Snippets Groups Projects
Commit 97325b0f authored by Thomas Guillem's avatar Thomas Guillem Committed by Rémi Denis-Courmont
Browse files

player: fix vlc_player_Start() without effect

vlc_player_Start() could have 0 effects when the input was being deleted
while the user requested to play it again.
parent 4df5dbc2
No related branches found
No related tags found
1 merge request!4746player: fix vlc_player_Start() without effect (unlikely)
Pipeline #423816 passed with stage
in 14 minutes and 55 seconds
......@@ -1156,6 +1156,17 @@ vlc_player_Start(vlc_player_t *player)
player->started = true;
return VLC_SUCCESS;
}
else if (unlikely(player->media != NULL))
{
/* The current media is being stopped while the user requested to
* play it again. Tell the thread to play the same media when
* ready. */
player->started = true;
player->next_media = input_item_Hold(player->media);
player->releasing_media = false;
player->next_media_requested = true;
return VLC_SUCCESS;
}
else
return VLC_EGENERIC;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment