Bug 988827 - Fix more warnings in cubeb on Android/B2G. r=cpeterson

--HG--
extra : rebase_source : 88cb14657c7f2b9d4c1908e6f552ad2e4182b33c
This commit is contained in:
Paul Adenot 2014-03-27 13:36:46 +01:00
parent 40d145e1bb
commit 567b36ad22
2 changed files with 3 additions and 3 deletions

View File

@ -298,7 +298,7 @@ audiotrack_get_min_latency(cubeb * ctx, cubeb_stream_params params, uint32_t * l
* audiotrack_stream_init), so this value is not going to be used. */
int rv;
rv = audiotrack_get_min_frame_count(ctx, &params, latency_ms);
rv = audiotrack_get_min_frame_count(ctx, &params, (int *)latency_ms);
if (rv != CUBEB_OK) {
return CUBEB_ERROR;
}
@ -347,7 +347,7 @@ audiotrack_stream_init(cubeb * ctx, cubeb_stream ** stream, char const * stream_
return CUBEB_ERROR_INVALID_FORMAT;
}
if (audiotrack_get_min_frame_count(ctx, &stream_params, &min_frame_count)) {
if (audiotrack_get_min_frame_count(ctx, &stream_params, (int *)&min_frame_count)) {
return CUBEB_ERROR;
}

View File

@ -559,7 +559,7 @@ opensl_stream_get_position(cubeb_stream * stm, uint64_t * position)
uint64_t samplerate;
SLresult res;
int rv;
int32_t mixer_latency;
uint32_t mixer_latency;
res = (*stm->play)->GetPosition(stm->play, &msec);
if (res != SL_RESULT_SUCCESS)