Cleaned up the get_play_lock and release_play_lock stuff and placed them in the right (?) places for AP2, AP1 compatibiity and Classic AP. Fixed the setting of flags and GID in Bonjour.
This commit is contained in:
@@ -12,8 +12,20 @@ void *rtsp_listen_loop(__attribute((unused)) void *arg);
|
||||
void lock_player();
|
||||
void unlock_player();
|
||||
|
||||
// this can be used to forcibly stop a play session
|
||||
int get_play_lock(rtsp_conn_info *conn, int allow_session_interruption);
|
||||
// result of trying to acquire or release the play lock
|
||||
typedef enum {
|
||||
play_lock_released,
|
||||
play_lock_already_released,
|
||||
play_lock_already_acquired,
|
||||
play_lock_acquired_without_breaking_in,
|
||||
play_lock_acquired_by_breaking_in,
|
||||
play_lock_aquisition_failed
|
||||
} play_lock_r;
|
||||
|
||||
// this can be used to [try to] forcibly stop a play session
|
||||
play_lock_r get_play_lock(rtsp_conn_info *conn, int allow_session_interruption);
|
||||
// this will release the play lock only if the conn has it or if the conn is NULL
|
||||
void release_play_lock(rtsp_conn_info *conn);
|
||||
|
||||
// initialise and completely delete the metadata stuff
|
||||
|
||||
|
||||
Reference in New Issue
Block a user