From 94528ed28d3de271a8dfbb239145f1864d2c864c Mon Sep 17 00:00:00 2001 From: twinaphex Date: Mon, 5 Dec 2016 02:09:32 +0100 Subject: [PATCH] (Drivers) Cleanups/style nits --- audio/audio_driver.c | 18 +++++++++--------- gfx/video_driver.c | 4 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/audio/audio_driver.c b/audio/audio_driver.c index 6d5023d57f..4b89dc836e 100644 --- a/audio/audio_driver.c +++ b/audio/audio_driver.c @@ -491,16 +491,16 @@ static bool audio_driver_flush(const int16_t *data, size_t samples) struct resampler_data src_data; static struct retro_perf_counter resampler_proc = {0}; static struct retro_perf_counter audio_convert_s16 = {0}; - const void *output_data = NULL; - unsigned output_frames = 0; - size_t output_size = sizeof(float); - settings_t *settings = config_get_ptr(); + const void *output_data = NULL; + unsigned output_frames = 0; + size_t output_size = sizeof(float); + settings_t *settings = config_get_ptr(); - src_data.data_in = NULL; - src_data.data_out = NULL; - src_data.input_frames = 0; - src_data.output_frames = 0; - src_data.ratio = 0.0f; + src_data.data_in = NULL; + src_data.data_out = NULL; + src_data.input_frames = 0; + src_data.output_frames = 0; + src_data.ratio = 0.0f; if (recording_data) recording_push_audio(data, samples); diff --git a/gfx/video_driver.c b/gfx/video_driver.c index de61008db3..b7c69890d3 100644 --- a/gfx/video_driver.c +++ b/gfx/video_driver.c @@ -74,8 +74,8 @@ typedef struct video_pixel_scaler * Used by e.g. input drivers which bind to a window. * Drivers are responsible for setting these if an input driver * could potentially make use of this. */ -static uintptr_t video_driver_display; -static uintptr_t video_driver_window; +static uintptr_t video_driver_display = 0; +static uintptr_t video_driver_window = 0; static rarch_softfilter_t *video_driver_state_filter = NULL; static void *video_driver_state_buffer = NULL;