Fix crash: file can be NULL here.

v-0.4.0
Alastair Poole 4 years ago
parent 33127a90d5
commit d7227a74d3
  1. 9
      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 *

Loading…
Cancel
Save