mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +00:00
id3v2mux: Fix unitialized variable compiler warning
error: variable 'image_type' is used uninitialized whenever 'if' condition is false [-Werror,-Wsometimes-uninitialized]
This commit is contained in:
parent
4c01974ec1
commit
f299fc899c
1 changed files with 1 additions and 3 deletions
|
@ -461,7 +461,7 @@ add_image_tag (ID3v2::Tag * id3v2tag, const GstTagList * list,
|
||||||
if (strcmp (tag, GST_TAG_PREVIEW_IMAGE) == 0) {
|
if (strcmp (tag, GST_TAG_PREVIEW_IMAGE) == 0) {
|
||||||
frame->setType (ID3v2::AttachedPictureFrame::FileIcon);
|
frame->setType (ID3v2::AttachedPictureFrame::FileIcon);
|
||||||
} else {
|
} else {
|
||||||
int image_type;
|
int image_type = image_type = ID3v2::AttachedPictureFrame::Other;
|
||||||
|
|
||||||
if (info_struct) {
|
if (info_struct) {
|
||||||
if (gst_structure_get (info_struct, "image-type",
|
if (gst_structure_get (info_struct, "image-type",
|
||||||
|
@ -471,8 +471,6 @@ add_image_tag (ID3v2::Tag * id3v2tag, const GstTagList * list,
|
||||||
} else {
|
} else {
|
||||||
image_type = ID3v2::AttachedPictureFrame::Other;
|
image_type = ID3v2::AttachedPictureFrame::Other;
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
image_type = ID3v2::AttachedPictureFrame::Other;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue