diff options
author | Wim Taymans <wtaymans@redhat.com> | 2020-08-06 17:11:35 +0200 |
---|---|---|
committer | Wim Taymans <wtaymans@redhat.com> | 2020-08-06 17:11:35 +0200 |
commit | 7cdef8aa32f5b387be32609281df4f6555359ae3 (patch) | |
tree | f6f12dbaf021422c560761b91c2802d60286b427 | |
parent | b9862868c16f6bd11e27105d2088b17818f9e8b5 (diff) |
media-session: improve debug
-rw-r--r-- | src/examples/media-session/media-session.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/examples/media-session/media-session.c b/src/examples/media-session/media-session.c index 037c033b..71d70d75 100644 --- a/src/examples/media-session/media-session.c +++ b/src/examples/media-session/media-session.c @@ -1314,16 +1314,16 @@ int sm_media_session_roundtrip(struct sm_media_session *sess) { struct impl *impl = SPA_CONTAINER_OF(sess, struct impl, this); struct pw_loop *loop = impl->this.loop; - int done, res; + int done, res, seq; if (impl->policy_core == NULL) return -EIO; done = 0; - if ((res = sm_media_session_sync(sess, roundtrip_callback, &done)) < 0) - return res; + if ((seq = sm_media_session_sync(sess, roundtrip_callback, &done)) < 0) + return seq; - pw_log_debug(NAME" %p: roundtrip %d", impl, res); + pw_log_debug(NAME" %p: roundtrip %d", impl, seq); pw_loop_enter(loop); while (!done) { @@ -1335,7 +1335,7 @@ int sm_media_session_roundtrip(struct sm_media_session *sess) } pw_loop_leave(loop); - pw_log_debug(NAME" %p: roundtrip done", impl); + pw_log_debug(NAME" %p: roundtrip %d done", impl, seq); return 0; } |