audio: Use C99 initializers in read_frames()

Change-Id: I69d9ac00dbd7126682c66087804c2b33cf6c86bc
tirimbino
Andreas Schneider 8 years ago committed by Christopher N. Hesse
parent cabe5e6aef
commit b7f32128dc
  1. 4
      audio/audio_hw.c

@ -1865,8 +1865,8 @@ static ssize_t read_frames(struct stream_in *in, void *buffer, ssize_t frames)
&frames_rd);
} else {
struct resampler_buffer buf = {
{ raw : NULL, },
frame_count : frames_rd,
.raw = NULL,
.frame_count = frames_rd,
};
get_next_buffer(&in->buf_provider, &buf);
if (buf.raw != NULL) {

Loading…
Cancel
Save