summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDivya Narayanan Poojary <dnaray@codeaurora.org>2014-09-16 05:09:15 (GMT)
committerLinux Build Service Account <lnxbuild@localhost>2014-11-04 15:54:01 (GMT)
commitc9668ea85f992ae6dd231b26bce7f1d00e596037 (patch)
treecf6389f707eff8c878a15764babcb7667ad645fe
parentb254558a04b52e8d7d6d81e8940a754400f197e2 (diff)
downloadandroid_external_sonivox-stable/cm-12.0-YNG1T.zip
android_external_sonivox-stable/cm-12.0-YNG1T.tar.gz
android_external_sonivox-stable/cm-12.0-YNG1T.tar.bz2
- On EAS_Pause() STREAM_FLAGS_PAUSE is added to streamFlags, but EAS_State() returns SUCCESS before checking for streamFlags and updating midiplayers state. - Fix is to check for streamFlags for STREAM_FLAGS_PAUSE and update midiplayers state before returning SUCCESS. CRs-Fixed: 633774 Change-Id: Ie8845633f27f05c4917045dcf7cc2b3219c13ef6
-rw-r--r--arm-wt-22k/lib_src/eas_public.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arm-wt-22k/lib_src/eas_public.c b/arm-wt-22k/lib_src/eas_public.c
index 51ac423..d0f6455 100644
--- a/arm-wt-22k/lib_src/eas_public.c
+++ b/arm-wt-22k/lib_src/eas_public.c
@@ -1662,10 +1662,6 @@ 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 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 */
if (pStream->streamFlags & STREAM_FLAGS_PAUSE)
{
@@ -1675,6 +1671,10 @@ EAS_PUBLIC EAS_RESULT EAS_State (EAS_DATA_HANDLE pEASData, EAS_HANDLE pStream, E
*pState = EAS_STATE_PAUSING;
}
+ /* 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 resume, report it as playing */
if (pStream->streamFlags & STREAM_FLAGS_RESUME)
*pState = EAS_STATE_PLAY;