mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-25 03:01:03 +00:00
tests: audiodecoder: fix compiler warnings due to c99-ism
audiodecoder.c:160:5: error: ‘for’ loop initial declarations are only allowed in C99 mode
This commit is contained in:
parent
5cbb52285c
commit
57e1e5921e
1 changed files with 3 additions and 1 deletions
|
@ -157,7 +157,9 @@ gst_audio_decoder_tester_handle_frame (GstAudioDecoder * dec,
|
|||
if ((tester->delay_decoding && tester->prev_buf != NULL) ||
|
||||
!tester->delay_decoding) {
|
||||
gsize buf_num = tester->delay_decoding ? 2 : 1;
|
||||
for (gint i = 0; i != buf_num; ++i) {
|
||||
gint i;
|
||||
|
||||
for (i = 0; i != buf_num; ++i) {
|
||||
GstBuffer *cur_buf = buf_num == 1 || i != 0 ? buffer : tester->prev_buf;
|
||||
gst_buffer_map (cur_buf, &map, GST_MAP_READ);
|
||||
|
||||
|
|
Loading…
Reference in a new issue