It's never going to be 0 if we first increment and then check.
&& gst_structure_has_name (structure, "image/png")
&& png_icon_count++ == 0) {
image_type = 1;
&& 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 */
image_type = 2;
} else {
image_type = 0; /* Other */