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:
Wim Taymans 2021-03-05 09:23:19 +01:00
parent e89e87ba94
commit 93002ecd11
6 changed files with 12 additions and 12 deletions

View file

@ -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);