mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-08 04:27:12 +03:00
workaround for JPEG issue - release
This commit is contained in:
@@ -876,7 +876,9 @@ static void grfa_handler(u8_t *data, int len) {
|
|||||||
if (artwork.size == length) {
|
if (artwork.size == length) {
|
||||||
GDS_ClearWindow(display, artwork.x, artwork.y, -1, -1, GDS_COLOR_BLACK);
|
GDS_ClearWindow(display, artwork.x, artwork.y, -1, -1, GDS_COLOR_BLACK);
|
||||||
xSemaphoreTake(displayer.mutex, portMAX_DELAY);
|
xSemaphoreTake(displayer.mutex, portMAX_DELAY);
|
||||||
GDS_DrawJPEG(display, artwork.data, artwork.x, artwork.y, artwork.y < displayer.height ? (GDS_IMAGE_RIGHT | GDS_IMAGE_TOP) : GDS_IMAGE_CENTER);
|
for (int i = 0; i < 2 && !GDS_DrawJPEG(display, artwork.data, artwork.x, artwork.y, artwork.y < displayer.height ? (GDS_IMAGE_RIGHT | GDS_IMAGE_TOP) : GDS_IMAGE_CENTER); i++) {
|
||||||
|
LOG_WARN("JPEG decoding error, pass %d", i+1);
|
||||||
|
}
|
||||||
xSemaphoreGive(displayer.mutex);
|
xSemaphoreGive(displayer.mutex);
|
||||||
free(artwork.data);
|
free(artwork.data);
|
||||||
artwork.data = NULL;
|
artwork.data = NULL;
|
||||||
|
|||||||
Reference in New Issue
Block a user