cleanups for hls.

This commit is contained in:
F. Duncanh
2025-12-15 02:23:49 -05:00
parent 32562100ee
commit be9f5bcc14
4 changed files with 47 additions and 32 deletions

View File

@@ -863,16 +863,13 @@ void raop_playlist_remove(raop_t *raop, void *opaque, float position_seconds) {
}
}
int raop_current_playlist_delete(raop_t *raop) {
int current_video = raop->current_video;
assert (current_video < MAX_AIRPLAY_VIDEO);
if (current_video >= 0) {
raop_destroy_airplay_video(raop, current_video);
raop->current_video = -1;
} else {
logger_log(raop->logger, LOGGER_ERR, "raop_current_playlist_delete: failed to identify current_playlist");
void *raop_get_current_video(raop_t *raop) {
if (raop->current_video < 0) {
logger_log(raop->logger, LOGGER_ERR, "raop_get_current_video: failed to identify current_playlist");
return NULL;
}
return current_video;
assert(raop->airplay_video[raop->current_video]);
return (void *) raop->airplay_video[raop->current_video];
}
int get_playlist_by_uuid(raop_t *raop, const char *uuid) {