id3tag: Fix uninitialized variable compiler warning

error: variable 'image_type' is used uninitialized whenever
'if' condition is false [-Werror,-Wsometimes-uninitialized]
This commit is contained in:
Sebastian Dröge 2014-02-08 18:48:42 +01:00
parent c2de786117
commit 835414c887

View file

@ -759,7 +759,7 @@ add_image_tag (GstId3v2Tag * id3v2tag, const GstTagList * list,
if (strcmp (tag, GST_TAG_PREVIEW_IMAGE) == 0) {
id3v2_frame_write_uint8 (&frame, ID3V2_APIC_PICTURE_FILE_ICON);
} else {
int image_type;
int image_type = ID3V2_APIC_PICTURE_OTHER;
if (info_struct) {
if (gst_structure_get (info_struct, "image-type",