aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2018-06-19 17:21:43 +0100
committerAlastair Poole <netstar@gmail.com>2018-06-19 17:21:43 +0100
commitd7227a74d35b4c1c25b5baa55907945c9463f269 (patch)
tree2e668a3ce61923e58504a7bc147a6ee263183af1
parentAUTHORS: use netstar's full name. (diff)
downloadrage-d7227a74d35b4c1c25b5baa55907945c9463f269.tar.gz
Fix crash: file can be NULL here.
-rw-r--r--src/bin/video.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bin/video.c b/src/bin/video.c
index 3efc0ae..eb4a056 100644
--- a/src/bin/video.c
+++ b/src/bin/video.c
@@ -1160,8 +1160,13 @@ video_file_autosub_set(Evas_Object *obj, const char *file, const char *sub)
}
if (!found) video_sub_file_set(obj, NULL);
}
- else video_sub_file_set(obj, sub);
- video_file_set(obj, file);
+ else
+ {
+ video_sub_file_set(obj, sub);
+ }
+
+ if (file)
+ video_file_set(obj, file);
}
const char *