Commit 14463a8e authored by Glenn Kasten's avatar Glenn Kasten
Browse files

Fix unsigned warnings

Change-Id: I8d174235cb8092d4e879ec43228e7f7f6fdad462
parent 5bb641dc
......@@ -51,7 +51,7 @@ void ExitOnErrorFunc( SLresult result , int line)
// These are extensions to OpenSL ES 1.0.1 values
#define SL_PREFETCHSTATUS_UNKNOWN 0
#define SL_PREFETCHSTATUS_ERROR (-1)
#define SL_PREFETCHSTATUS_ERROR ((SLuint32) -1)
// Mutex and condition shared with main program to protect prefetch_status
......
......@@ -32,7 +32,7 @@
// These are extensions to OpenSL ES 1.0.1 values
#define SL_PREFETCHSTATUS_UNKNOWN 0
#define SL_PREFETCHSTATUS_ERROR (-1)
#define SL_PREFETCHSTATUS_ERROR ((SLuint32) -1)
// Mutex and condition shared with main program to protect prefetch_status
......
......@@ -34,7 +34,7 @@
// These are extensions to OpenSL ES 1.0.1 values
#define SL_PREFETCHSTATUS_UNKNOWN 0
#define SL_PREFETCHSTATUS_ERROR (-1)
#define SL_PREFETCHSTATUS_ERROR ((SLuint32) -1)
// Mutex and condition shared with main program to protect prefetch_status
......
......@@ -170,8 +170,8 @@ void printEnvNames(void)
// These are extensions to OpenSL ES 1.0.1 values
#define SL_PREFETCHSTATUS_UNKNOWN 0
#define SL_PREFETCHSTATUS_ERROR (-1)
#define SL_PREFETCHSTATUS_UNKNOWN ((SLuint32) 0)
#define SL_PREFETCHSTATUS_ERROR ((SLuint32) -1)
// Mutex and condition shared with main program to protect prefetch_status
......
......@@ -806,7 +806,7 @@ streamIndex, &mediaContainerInformation);
if (pauseMs >= 0) {
result = (*playerPlay)->GetPosition(playerPlay, &position);
assert(XA_RESULT_SUCCESS == result);
if (position >= pauseMs) {
if ((int) position >= pauseMs) {
printf("Pausing for 5 seconds at position %u\n", position);
result = (*playerPlay)->SetPlayState(playerPlay, XA_PLAYSTATE_PAUSED);
assert(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