Commit 7717d088 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller

flacenc: fix other icon counter check

It's never going to be 0 if we first increment and then check.
parent 5404304f
......@@ -661,7 +661,7 @@ gst_flac_enc_set_metadata (GstFlacEnc * flacenc, GstAudioInfo * info,
&& gst_structure_has_name (structure, "image/png")
&& png_icon_count++ == 0) {
image_type = 1;
} else if (width <= 32 && height <= 32 && ++other_icon_count == 0) {
} else if (width <= 32 && height <= 32 && other_icon_count++ == 0) {
image_type = 2;
} else {
image_type = 0; /* Other */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment