error: variable 'image_type' is used uninitialized
whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
if (strcmp (tag, GST_TAG_PREVIEW_IMAGE) == 0) {
frame->setType (ID3v2::AttachedPictureFrame::FileIcon);
} else {
- int image_type;
+ int image_type = image_type = ID3v2::AttachedPictureFrame::Other;
if (info_struct) {
if (gst_structure_get (info_struct, "image-type",
} else {
image_type = ID3v2::AttachedPictureFrame::Other;
}
- } else {
- image_type = ID3v2::AttachedPictureFrame::Other;
}
}