[sink_flac] no declaration after statement
authorPaul Brossier <piem@piem.org>
Sat, 22 Dec 2018 23:03:13 +0000 (00:03 +0100)
committerPaul Brossier <piem@piem.org>
Sat, 22 Dec 2018 23:03:13 +0000 (00:03 +0100)
src/io/sink_flac.c

index a0ae795..0414479 100644 (file)
@@ -129,6 +129,7 @@ uint_t aubio_sink_flac_open(aubio_sink_flac_t *s)
   uint_t ret = AUBIO_FAIL;
   FLAC__bool ok = true;
   FLAC__StreamEncoderInitStatus init_status;
+  FLAC__StreamMetadata_VorbisComment_Entry entry;
   const unsigned comp_level = 5;
   const unsigned bps = 16;
 
@@ -182,7 +183,6 @@ uint_t aubio_sink_flac_open(aubio_sink_flac_t *s)
     goto failure;
   }
 
-  FLAC__StreamMetadata_VorbisComment_Entry entry;
   ok = FLAC__metadata_object_vorbiscomment_entry_from_name_value_pair(&entry,
       "encoder", "aubio");
   ok &= FLAC__metadata_object_vorbiscomment_append_comment(s->metadata[0],