Add HAVE_FFMPEG/HAVE_IMAGEVIEWER ifdefs

This commit is contained in:
twinaphex 2016-07-31 14:22:43 +02:00
parent 6e05ca92cf
commit 77b688ed42
2 changed files with 8 additions and 0 deletions

View File

@ -5459,6 +5459,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
}
break;
case DISPLAYLIST_IMAGES_HISTORY:
#ifdef HAVE_IMAGEVIEWER
menu_displaylist_parse_playlist_history(menu, info,
g_defaults.image_history,
"images_history",
@ -5470,8 +5471,10 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
info->need_refresh = true;
info->need_push = true;
}
#endif
break;
case DISPLAYLIST_MUSIC_HISTORY:
#ifdef HAVE_FFMPEG
menu_displaylist_parse_playlist_history(menu, info,
g_defaults.music_history,
"music_history",
@ -5483,8 +5486,10 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
info->need_refresh = true;
info->need_push = true;
}
#endif
break;
case DISPLAYLIST_VIDEO_HISTORY:
#ifdef HAVE_FFMPEG
menu_displaylist_parse_playlist_history(menu, info,
g_defaults.video_history,
"video_history",
@ -5496,6 +5501,7 @@ bool menu_displaylist_ctl(enum menu_displaylist_ctl_state type, void *data)
info->need_refresh = true;
info->need_push = true;
}
#endif
break;
case DISPLAYLIST_OPTIONS_DISK:
menu_entries_append_enum(info->list,

View File

@ -134,12 +134,14 @@ static bool screenshot_dump(
bmp_type);
#endif
#ifdef HAVE_IMAGEVIEWER
if (ret == true)
{
if (content_push_to_history_playlist(g_defaults.image_history, filename,
"imageviewer", "builtin"))
playlist_write_file(g_defaults.image_history);
}
#endif
return ret;
}