mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
cleanups for hls.
This commit is contained in:
15
lib/raop.c
15
lib/raop.c
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user