Commit 71139e6b authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Make it build again on non-Android

Fix warning about unused variable.
Remove spurious include.
Fix warning about printf format type mismatch.

Change-Id: Ibeeb33a55175e0ec1e5210211d8844df0bbe3bca
parent def09fde
......@@ -78,7 +78,7 @@ void SndFile_Callback(SLBufferQueueItf caller, void *pContext)
result = IBufferQueue_Enqueue(caller, pBuffer, size);
// not much we can do if the Enqueue fails, so we'll just drop the decoded data
if (SL_RESULT_SUCCESS != result) {
SL_LOGE("enqueue failed 0x%lx", result);
SL_LOGE("enqueue failed 0x%x", result);
}
} else {
thisAP->mPlay.mState = SL_PLAYSTATE_PAUSED;
......
......@@ -18,8 +18,6 @@
#include "sles_allinclusive.h"
#include <system/audio.h>
static SLresult IEngine_CreateLEDDevice(SLEngineItf self, SLObjectItf *pDevice, SLuint32 deviceID,
SLuint32 numInterfaces, const SLInterfaceID *pInterfaceIds, const SLboolean *pInterfaceRequired)
{
......
......@@ -27,11 +27,11 @@ using namespace android;
XAresult CMediaPlayer_Realize(void *self, XAboolean async)
{
CMediaPlayer *thiz = (CMediaPlayer *) self;
XAresult result = XA_RESULT_SUCCESS;
#ifdef ANDROID
CMediaPlayer *thiz = (CMediaPlayer *) self;
// realize player
result = android_Player_realize(thiz, async);
if (XA_RESULT_SUCCESS == result) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment