diff --git a/albumart.c b/albumart.c index 28f174b..6014e9e 100644 --- a/albumart.c +++ b/albumart.c @@ -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; } @@ -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; diff --git a/monitor.c b/monitor.c index e347abb..c59d73e 100644 --- a/monitor.c +++ b/monitor.c @@ -44,7 +44,7 @@ time_t next_pl_fill = 0; -static int +int update_password(const char *password_path) { typedef struct _node diff --git a/monitor.h b/monitor.h index bae34bb..1c218d0 100644 --- a/monitor.h +++ b/monitor.h @@ -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 diff --git a/options.h b/options.h index f9ac111..11d461b 100644 --- a/options.h +++ b/options.h @@ -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 */ }; @@ -76,7 +76,7 @@ enum upnpconfigoptions { int readoptionsfile(const char * fname); -/* freeoptions() +/* freeoptions() * frees memory allocated to option values */ void freeoptions(void);