changeset 2635:e2b9dff749d3

Addl fix 510: Rudimentary video support https://github.com/BestImageViewer/geeqie/issues/510 Segfaults when you click on the image area in an empty directory
author Tomasz Golinski <tomaszg@math.uwb.edu.pl>
date Mon, 16 Oct 2017 10:15:19 +0100
parents 8cdd84a6a8e9
children 22479efb61d7
files src/layout_image.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/layout_image.c	Sun Oct 15 19:46:31 2017 +0100
+++ b/src/layout_image.c	Mon Oct 16 10:15:19 2017 +0100
@@ -1698,7 +1698,7 @@
 	switch (event->button)
 		{
 		case MOUSE_BUTTON_LEFT:
-			if (options->image_l_click_video && options->image_l_click_video_editor && imd->image_fd->format_class == FORMAT_CLASS_VIDEO)
+			if (options->image_l_click_video && options->image_l_click_video_editor && imd->image_fd && imd->image_fd->format_class == FORMAT_CLASS_VIDEO)
 				{
 				start_editor_from_file(options->image_l_click_video_editor, imd->image_fd);
 				}