Fix T39271: Crash in MCE with "p" shortcut without clip

Weird nobody noticed this before, issue exists in 2.69 as well..
This commit is contained in:
Sergey Sharybin 2014-03-20 12:39:02 +06:00
parent eedde311bb
commit 9d4b54b44f
Notes: blender-bot 2023-02-14 10:57:56 +01:00
Referenced by issue #39271, Blender 2.70 - Crashes in Movie Clip Editor with "p" shortcut
1 changed files with 4 additions and 0 deletions

View File

@ -974,6 +974,10 @@ static bool prefetch_check_early_out(const bContext *C)
int first_uncached_frame, end_frame;
int clip_len;
if (clip == NULL) {
return true;
}
clip_len = BKE_movieclip_get_duration(clip);
/* check whether all the frames from prefetch range are cached */