avsync: handle video timeout during start [2/2]
PD#SWPL-47489
Problem:
When poll thread is triggered, need to know whether audio start should
be triggered.
Solution:
Check v_active and v_timeout and trigger audio start if any of them
appears.
Verify:
U212 + Cobalt
Change-Id: I32db016e50ed19cecbf8a415d0df2f1fc13b04a5
diff --git a/src/msync_util.c b/src/msync_util.c
index 6bc9c32..4eaa41d 100644
--- a/src/msync_util.c
+++ b/src/msync_util.c
@@ -281,7 +281,8 @@
return msync_session_set_event(fd, AVS_VIDEO_STOP, 0);
}
-int msync_session_get_stat (int fd, enum sync_mode *mode, bool *v_active, bool *a_active)
+int msync_session_get_stat (int fd, enum sync_mode *mode,
+ bool *v_active, bool *a_active, bool *v_timeout)
{
int rc;
struct session_sync_stat stat;
@@ -313,6 +314,8 @@
*v_active = stat.v_active;
if (a_active)
*a_active = stat.a_active;
+ if (v_timeout)
+ *v_timeout = stat.v_timeout;
return rc;
}