X-Git-Url: https://de.git.xonotic.org/?a=blobdiff_plain;f=cl_video_jamdecode.c;h=04bd63489dfe7253df7ebc91b387e1474809aee8;hb=42cec435a804563d686efe412cd03174c2e028e1;hp=475f1f7b2d9400b2745954290060e8e503697792;hpb=84c4ff93cb0d2bce3ac95150dd975936cb06d0f9;p=xonotic%2Fdarkplaces.git diff --git a/cl_video_jamdecode.c b/cl_video_jamdecode.c index 475f1f7b..04bd6348 100644 --- a/cl_video_jamdecode.c +++ b/cl_video_jamdecode.c @@ -53,12 +53,12 @@ void *jam_open(clvideo_t *video, char *filename, const char **errorstring) // allocate stream structure s = (jamdecodestream_t *)Z_Malloc(sizeof(jamdecodestream_t)); memset(s, 0, sizeof(jamdecodestream_t)); - s->sndchan = -1; if (s == NULL) { *errorstring = "unable to allocate memory for stream info structure"; return NULL; } + s->sndchan = -1; // open file s->file = FS_OpenVirtualFile(filename, true); @@ -375,4 +375,4 @@ readframe: #endif } return 0; -} \ No newline at end of file +}