flacenc: fix other icon counter check

It's never going to be 0 if we first increment and then check.
This commit is contained in:
Tim-Philipp Müller 2017-01-14 15:27:19 +00:00
parent 5404304fac
commit 7717d08835

View file

@ -661,7 +661,7 @@ gst_flac_enc_set_metadata (GstFlacEnc * flacenc, GstAudioInfo * info,
&& gst_structure_has_name (structure, "image/png") && gst_structure_has_name (structure, "image/png")
&& png_icon_count++ == 0) { && png_icon_count++ == 0) {
image_type = 1; 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; image_type = 2;
} else { } else {
image_type = 0; /* Other */ image_type = 0; /* Other */