|
|
|
@ -17,6 +17,7 @@
|
|
|
|
|
//#define LOG_NDEBUG 0
|
|
|
|
|
#define LOG_TAG "NuPlayerDriver"
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
#include <android-base/macros.h>
|
|
|
|
|
#include <utils/Log.h>
|
|
|
|
|
#include <cutils/properties.h>
|
|
|
|
|
|
|
|
|
@ -344,7 +345,7 @@ status_t NuPlayerDriver::start_l() {
|
|
|
|
|
|
|
|
|
|
CHECK_EQ(mState, STATE_PREPARED);
|
|
|
|
|
|
|
|
|
|
// fall through
|
|
|
|
|
FALLTHROUGH_INTENDED;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case STATE_PAUSED:
|
|
|
|
@ -353,7 +354,7 @@ status_t NuPlayerDriver::start_l() {
|
|
|
|
|
{
|
|
|
|
|
mPlayer->start();
|
|
|
|
|
|
|
|
|
|
// fall through
|
|
|
|
|
FALLTHROUGH_INTENDED;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case STATE_RUNNING:
|
|
|
|
@ -382,7 +383,7 @@ status_t NuPlayerDriver::stop() {
|
|
|
|
|
switch (mState) {
|
|
|
|
|
case STATE_RUNNING:
|
|
|
|
|
mPlayer->pause();
|
|
|
|
|
// fall through
|
|
|
|
|
FALLTHROUGH_INTENDED;
|
|
|
|
|
|
|
|
|
|
case STATE_PAUSED:
|
|
|
|
|
mState = STATE_STOPPED;
|
|
|
|
@ -991,7 +992,7 @@ void NuPlayerDriver::notifyListener_l(
|
|
|
|
|
mPlayer->pause();
|
|
|
|
|
mState = STATE_PAUSED;
|
|
|
|
|
}
|
|
|
|
|
// fall through
|
|
|
|
|
FALLTHROUGH_INTENDED;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
case MEDIA_ERROR:
|
|
|
|
|