projects
/
platform
/
upstream
/
gst-plugins-good.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5404304
)
flacenc: fix other icon counter check
author
Tim-Philipp Müller
<tim@centricular.com>
Sat, 14 Jan 2017 15:27:19 +0000
(15:27 +0000)
committer
Tim-Philipp Müller
<tim@centricular.com>
Sat, 14 Jan 2017 15:27:37 +0000
(15:27 +0000)
It's never going to be 0 if we first increment and then check.
ext/flac/gstflacenc.c
patch
|
blob
|
history
diff --git
a/ext/flac/gstflacenc.c
b/ext/flac/gstflacenc.c
index
8a5ec78
..
d31de07
100644
(file)
--- a/
ext/flac/gstflacenc.c
+++ b/
ext/flac/gstflacenc.c
@@
-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 */