mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-02 09:01:50 -05:00
media-session: remove unused prefix from load/save state
The prefix was used to filter the properties when loading and saving but since the conversion to the core provided functions, this feature is not longer available. It's not exactly a problem, we could implement the filtering ourselves afterwards but there is little point because we just ignore the unknown items and never write invalid items.
This commit is contained in:
parent
e89e87ba94
commit
93002ecd11
6 changed files with 12 additions and 12 deletions
|
|
@ -87,7 +87,7 @@ static void remove_idle_timeout(struct impl *impl)
|
|||
|
||||
if (impl->idle_timeout) {
|
||||
if ((res = sm_media_session_save_state(impl->session,
|
||||
SESSION_KEY, PREFIX, impl->to_restore)) < 0)
|
||||
SESSION_KEY, impl->to_restore)) < 0)
|
||||
pw_log_error("can't save "SESSION_KEY" state: %s", spa_strerror(res));
|
||||
pw_loop_destroy_source(main_loop, impl->idle_timeout);
|
||||
impl->idle_timeout = NULL;
|
||||
|
|
@ -988,7 +988,7 @@ int sm_default_routes_start(struct sm_media_session *session)
|
|||
}
|
||||
|
||||
if ((res = sm_media_session_load_state(impl->session,
|
||||
SESSION_KEY, PREFIX, impl->to_restore)) < 0)
|
||||
SESSION_KEY, impl->to_restore)) < 0)
|
||||
pw_log_info("can't load "SESSION_KEY" state: %s", spa_strerror(res));
|
||||
|
||||
sm_media_session_add_listener(impl->session, &impl->listener, &session_events, impl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue