Code Cleanup: use NULL for pointer checks and remove joke.
This commit is contained in:
@@ -477,7 +477,7 @@ static int startffmpeg(struct anim *anim)
|
||||
const int *inv_table;
|
||||
#endif
|
||||
|
||||
if (anim == 0) return(-1);
|
||||
if (anim == NULL) return(-1);
|
||||
|
||||
streamcount = anim->streamindex;
|
||||
|
||||
@@ -960,7 +960,7 @@ static ImBuf *ffmpeg_fetchibuf(struct anim *anim, int position,
|
||||
int new_frame_index = 0; /* To quiet gcc barking... */
|
||||
int old_frame_index = 0; /* To quiet gcc barking... */
|
||||
|
||||
if (anim == 0) return (0);
|
||||
if (anim == NULL) return (0);
|
||||
|
||||
av_log(anim->pFormatCtx, AV_LOG_DEBUG, "FETCH: pos=%d\n", position);
|
||||
|
||||
|
||||
@@ -523,9 +523,9 @@ void WM_jobs_kill(wmWindowManager *wm, void *owner, void (*startjob)(void *, sho
|
||||
wm_job = wm->jobs.first;
|
||||
while (wm_job) {
|
||||
if (wm_job->owner == owner || wm_job->startjob == startjob) {
|
||||
wmJob *bill = wm_job;
|
||||
wmJob *wm_job_kill = wm_job;
|
||||
wm_job = wm_job->next;
|
||||
wm_jobs_kill_job(wm, bill);
|
||||
wm_jobs_kill_job(wm, wm_job_kill);
|
||||
}
|
||||
else {
|
||||
wm_job = wm_job->next;
|
||||
|
||||
Reference in New Issue
Block a user