Skip to content

Commit

Permalink
Couple of minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
HeavenVolkoff committed Sep 30, 2024
1 parent bc08485 commit a514640
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 4 additions & 2 deletions albumart.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ save_resized_album_art(image_s *imsrc, const char *path)

cache_file = image_save_to_jpeg_file(imdst, cache_file);
image_free(imdst);

return cache_file;
}

Expand Down Expand Up @@ -374,7 +374,9 @@ generate_thumbnail(const char * path)
}
vt->thumbnail_image_type = Jpeg;
vt->thumbnail_image_quality = runtime_vars.thumb_quality;
vt->thumbnail_size = runtime_vars.thumb_width;

video_thumbnailer_set_size(vt, runtime_vars.thumb_width, 0);

vt->seek_percentage = 20;
vt->overlay_film_strip = (GETFLAG(THUMB_FILMSTRIP))?1:0;

Expand Down
2 changes: 1 addition & 1 deletion monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

time_t next_pl_fill = 0;

static int
int
update_password(const char *password_path)
{
typedef struct _node
Expand Down
2 changes: 1 addition & 1 deletion monitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ int monitor_insert_directory(int fd, char *name, const char * path);
int monitor_remove_file(const char * path);
int monitor_remove_tree(const char * path);
int monitor_remove_directory(int fd, const char * path);
int update_password(const char *password_path)
int update_password(const char *password_path);

#if defined(HAVE_INOTIFY) || defined(HAVE_KQUEUE)
#define HAVE_WATCH 1
Expand Down
4 changes: 2 additions & 2 deletions options.h
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ enum upnpconfigoptions {
ENABLE_THUMB, /* enable thumbnail generation */
THUMB_WIDTH, /* thunbnail image with */
THUMB_QUALITY, /* thumnail image quality */
ENABLE_THUMB_FILMSTRIP /* film strip overlay */
ENABLE_THUMB_FILMSTRIP, /* film strip overlay */
#endif
PASSWORD_LENGTH /* Password */
};
Expand All @@ -76,7 +76,7 @@ enum upnpconfigoptions {
int
readoptionsfile(const char * fname);

/* freeoptions()
/* freeoptions()
* frees memory allocated to option values */
void
freeoptions(void);
Expand Down

0 comments on commit a514640

Please sign in to comment.