Commit 31bf4b4d authored by Martin Storsjö's avatar Martin Storsjö

mediacodec: Set the dequeue timeout in the right unit

The timeout parameter is in microseconds, while the previous wait
value (30) was supposed to be milliseconds.
Signed-off-by: default avatarMartin Storsjö <martin@martin.st>
parent 7a19c0b4
...@@ -545,7 +545,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block) ...@@ -545,7 +545,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
(*myVm)->DetachCurrentThread(myVm); (*myVm)->DetachCurrentThread(myVm);
return p_pic; return p_pic;
} }
timeout = 30; timeout = 30*1000;
continue; continue;
} }
jobject buf = (*env)->GetObjectArrayElement(env, p_sys->input_buffers, index); jobject buf = (*env)->GetObjectArrayElement(env, p_sys->input_buffers, index);
......
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