Skip to content

Commit

Permalink
Fixed errors showing up.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pand3ru committed Jul 30, 2024
1 parent 834f8a2 commit f40c2db
Show file tree
Hide file tree
Showing 9 changed files with 5 additions and 4 deletions.
Binary file modified bin/tuxplorer
Binary file not shown.
Binary file modified obj/config.o
Binary file not shown.
Binary file modified obj/controls.o
Binary file not shown.
Binary file modified obj/dirFunctions.o
Binary file not shown.
Binary file modified obj/draw.o
Binary file not shown.
Binary file modified obj/globals.o
Binary file not shown.
Binary file modified obj/main.o
Binary file not shown.
Binary file modified obj/media.o
Binary file not shown.
9 changes: 5 additions & 4 deletions src/media.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

bool isMediaFile(const char *filename) {
const char *media_extensions[] = {".png", ".jpg", ".jpeg",
".gif", ".mp4", ".avi"};
".gif", ".mp4", ".avi", ".JPG", ".PNG", ".JPEG"};
int num_media_extensions =
sizeof(media_extensions) / sizeof(media_extensions[0]);
const char *extension = strrchr(filename, '.');
Expand Down Expand Up @@ -86,11 +86,12 @@ int displayImage(const char *filename, int new_width, int new_height,
system(command);
return EXIT_SUCCESS;
} else {
fprintf(stderr, "Terminal type %s not supported for SIXEL graphics.\n",
term);
//fprintf(stderr, "Terminal type %s not supported for SIXEL graphics.\n",
// term);
return EXIT_FAILURE;
}

// Dead code
// Initialize SIXEL status variable
SIXELSTATUS status;
sixel_encoder_t *encoder;
Expand Down Expand Up @@ -138,7 +139,7 @@ void playMedia(char *filename) {

// Render the image
if (displayImage(filename, imageW, imageH, outx, outy) != 0) {
fprintf(stderr, "Error displaying image.\n");
//fprintf(stderr, "Error displaying image.\n");
return;
}

Expand Down

0 comments on commit f40c2db

Please sign in to comment.