From 24f61deefdbbf1aabcef6009a636fc6f64623e19 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Fri, 20 Aug 2021 13:44:04 +0200 Subject: [PATCH] media-session: also check restore-stream when info updates We only need an info update to restore the stream so check for that in addition to a param update. The info update can be used to restore the stream and the param update to update the stored value. --- src/examples/media-session/restore-stream.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/examples/media-session/restore-stream.c b/src/examples/media-session/restore-stream.c index 176698800..e4f6cdb26 100644 --- a/src/examples/media-session/restore-stream.c +++ b/src/examples/media-session/restore-stream.c @@ -457,7 +457,7 @@ static void object_update(void *data) pw_log_info(NAME" %p: stream %p %08x/%08x", impl, str, str->obj->obj.changed, str->obj->obj.avail); - if (str->obj->obj.changed & SM_NODE_CHANGE_MASK_PARAMS) + if (str->obj->obj.changed & (SM_NODE_CHANGE_MASK_INFO | SM_NODE_CHANGE_MASK_PARAMS)) update_stream(str); }