Skip to content

Commit

Permalink
Get base64 at least displaying (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sweets committed Jul 23, 2021
1 parent e28b181 commit f0f8332
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,11 +130,11 @@ static void create_csv_hint_string(GVariant *hints, char **string_ptr) {

free(temp);
}
} else if (g_variant_lookup_value(hints, key, image_type)) {
} else if ((value = g_variant_lookup_value(hints, key, image_type))) {
g_variant_get(value, "(iiibii@ay)", &width, &height, &row_stride,
&alpha_bool, &bits_per_sample, &channels, &pixel_data);
pixel_stride = (channels * bits_per_sample + 7) / 8;
expected_length = (height - 1) * (width + row_stride) *
expected_length = (height - 1) * row_stride + width *
pixel_stride;

pixels = g_variant_get_fixed_array(pixel_data, &real_length,
Expand Down

0 comments on commit f0f8332

Please sign in to comment.