(audio/video_thread_wrapper) Style nits
This commit is contained in:
parent
96a39ec234
commit
b98d8a47cf
|
@ -252,13 +252,14 @@ static const audio_driver_t audio_thread = {
|
|||
*
|
||||
* Starts a audio driver in a new thread.
|
||||
* Access to audio driver will be mediated through this driver.
|
||||
* This driver interfaces with audio callback and is only used in that case.
|
||||
* This driver interfaces with audio callback and is
|
||||
* only used in that case.
|
||||
*
|
||||
* Returns: true (1) if successful, otherwise false (0).
|
||||
**/
|
||||
bool rarch_threaded_audio_init(const audio_driver_t **out_driver, void **out_data,
|
||||
const char *device, unsigned audio_out_rate, unsigned latency,
|
||||
const audio_driver_t *drv)
|
||||
bool rarch_threaded_audio_init(const audio_driver_t **out_driver,
|
||||
void **out_data, const char *device, unsigned audio_out_rate,
|
||||
unsigned latency, const audio_driver_t *drv)
|
||||
{
|
||||
audio_thread_t *thr = (audio_thread_t*)calloc(1, sizeof(*thr));
|
||||
if (!thr)
|
||||
|
|
|
@ -570,13 +570,13 @@ static bool thread_init(thread_video_t *thr, const video_info_t *info,
|
|||
max_size *= max_size;
|
||||
max_size *= info->rgb32 ? sizeof(uint32_t) : sizeof(uint16_t);
|
||||
thr->frame.buffer = (uint8_t*)malloc(max_size);
|
||||
|
||||
if (!thr->frame.buffer)
|
||||
return false;
|
||||
|
||||
memset(thr->frame.buffer, 0x80, max_size);
|
||||
|
||||
thr->last_time = rarch_get_time_usec();
|
||||
|
||||
thr->thread = sthread_create(thread_loop, thr);
|
||||
if (!thr->thread)
|
||||
return false;
|
||||
|
@ -696,6 +696,9 @@ static bool thread_overlay_load(void *data,
|
|||
{
|
||||
thread_video_t *thr = (thread_video_t*)data;
|
||||
|
||||
if (!thr)
|
||||
return false;
|
||||
|
||||
thr->cmd_data.image.data = images;
|
||||
thr->cmd_data.image.num = num_images;
|
||||
thread_send_cmd(thr, CMD_OVERLAY_LOAD);
|
||||
|
|
Loading…
Reference in New Issue