Commit 75b67dbc authored by Felix Abecassis's avatar Felix Abecassis Committed by Rémi Denis-Courmont

mediacodec: change type of internal variables to bool.

Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
parent 09e1913c
...@@ -73,8 +73,8 @@ struct decoder_sys_t ...@@ -73,8 +73,8 @@ struct decoder_sys_t
int crop_top, crop_left; int crop_top, crop_left;
char *name; char *name;
int started; bool started;
int decoded; bool decoded;
ArchitectureSpecificCopyData architecture_specific_data; ArchitectureSpecificCopyData architecture_specific_data;
}; };
...@@ -347,7 +347,7 @@ static int OpenDecoder(vlc_object_t *p_this) ...@@ -347,7 +347,7 @@ static int OpenDecoder(vlc_object_t *p_this)
(*env)->ExceptionClear(env); (*env)->ExceptionClear(env);
goto error; goto error;
} }
p_sys->started = 1; p_sys->started = true;
p_sys->input_buffers = (*env)->CallObjectMethod(env, p_sys->codec, p_sys->get_input_buffers); p_sys->input_buffers = (*env)->CallObjectMethod(env, p_sys->codec, p_sys->get_input_buffers);
p_sys->output_buffers = (*env)->CallObjectMethod(env, p_sys->codec, p_sys->get_output_buffers); p_sys->output_buffers = (*env)->CallObjectMethod(env, p_sys->codec, p_sys->get_output_buffers);
...@@ -526,7 +526,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block) ...@@ -526,7 +526,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
(*env)->ExceptionClear(env); (*env)->ExceptionClear(env);
} }
} }
p_sys->decoded = 0; p_sys->decoded = false;
(*myVm)->DetachCurrentThread(myVm); (*myVm)->DetachCurrentThread(myVm);
return NULL; return NULL;
} }
...@@ -562,7 +562,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block) ...@@ -562,7 +562,7 @@ static picture_t *DecodeVideo(decoder_t *p_dec, block_t **pp_block)
ts = p_block->i_dts; ts = p_block->i_dts;
(*env)->CallVoidMethod(env, p_sys->codec, p_sys->queue_input_buffer, index, 0, size, ts, 0); (*env)->CallVoidMethod(env, p_sys->codec, p_sys->queue_input_buffer, index, 0, size, ts, 0);
(*env)->DeleteLocalRef(env, buf); (*env)->DeleteLocalRef(env, buf);
p_sys->decoded = 1; p_sys->decoded = true;
break; break;
} }
if (!p_pic) if (!p_pic)
......
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