fix: replace retained report sessions when re-adding queue items

This commit is contained in:
2026-10-22 17:20:19 +02:00
parent b132bab393
commit 3ff498720b
6 changed files with 96 additions and 16 deletions
+3 -2
View File
@@ -40,8 +40,9 @@ Player *player_create(void);
// Opt-in reporting must be initialized before opening media. Creates a new 0600
// file exclusively; errors never change playback state. Error buffers hold 512 bytes.
bool player_set_progress_file(Player *player, const char *path, char *error);
// Register immutable queue destinations without changing current playback. Each path is new;
// revisits append only to the original owned inode. Conflicting identities/paths are rejected.
// Register queue destinations without changing playback. Each path is new and stays reserved.
// A fresh path replaces an identity's previous session after draining its writer; callers
// reject identities still queued. Revisits append only to the registered session's owned inode.
// Atomic batch: all registrations succeed or none do. Strings are copied before returning.
bool player_register_progress_files(Player *player, const char *const *identities,
const char *const *paths, int count, char *error);