mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
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:
parent
5404304fac
commit
7717d08835
1 changed files with 1 additions and 1 deletions
|
@ -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 */
|
||||||
|
|
Loading…
Reference in a new issue