mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
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:
parent
c2de786117
commit
835414c887
1 changed files with 1 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Reference in a new issue