summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarco Nelissen <marcone@google.com>2010-12-22 00:00:10 (GMT)
committerMarco Nelissen <marcone@google.com>2010-12-22 00:00:57 (GMT)
commit3e2bd1f02bee702639966852fc0456d84023865f (patch)
treea3b5c436ddb1136d78d56bb78373fcbd967c7a2e
parente49546185f53f8d9ab6c495f4eef2f52e4dbbbd2 (diff)
downloadandroid_external_sonivox-3e2bd1f02bee702639966852fc0456d84023865f.zip
android_external_sonivox-3e2bd1f02bee702639966852fc0456d84023865f.tar.gz
android_external_sonivox-3e2bd1f02bee702639966852fc0456d84023865f.tar.bz2
Fix engine state reporting.
b/3290604 Change-Id: If1d15499575b1448c6c1c735718c2269b87fae3e
-rw-r--r--arm-wt-22k/lib_src/eas_public.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arm-wt-22k/lib_src/eas_public.c b/arm-wt-22k/lib_src/eas_public.c
index 9ee6cf4..8195b98 100644
--- a/arm-wt-22k/lib_src/eas_public.c
+++ b/arm-wt-22k/lib_src/eas_public.c
@@ -1651,8 +1651,8 @@ EAS_PUBLIC EAS_RESULT EAS_State (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, E
if (pStream->repeatCount && (*pState == EAS_STATE_STOPPED))
*pState = EAS_STATE_PLAY;
- /* if we're not ready or playing, we don't need to hide state from host */
- if (*pState > EAS_STATE_PLAY)
+ /* if we're not paused or pausing, we don't need to hide state from host */
+ if (*pState != EAS_STATE_PAUSED && *pState != EAS_STATE_PAUSING)
return EAS_SUCCESS;
/* if stream is about to be paused, report it as paused */