]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
playvideo and cd loop/cd play commands now call Host_StartVideo (this fixes a crash...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 May 2005 19:43:18 +0000 (19:43 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Fri, 6 May 2005 19:43:18 +0000 (19:43 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5237 d7cf8633-e32d-0410-b094-e92efae38249

cd_shared.c
cl_video.c

index 48dc4990c181fa914a2afa41101cd31846468f81..876a0a78da7a89f494b18ea0a437ccfa060793c6 100644 (file)
@@ -99,6 +99,8 @@ void CDAudio_Play (qbyte track, qboolean looping)
 {
        sfx_t* sfx;
 
+       Host_StartVideo();
+
        if (!enabled)
                return;
 
index 51fccbb64cded3b14d972f9b8ab24fd0ec59ca97..8baebeddab8f27b44214cd8b9a1366e5b52c83c3 100644 (file)
@@ -244,6 +244,8 @@ void CL_DrawVideo(void)
 
 void CL_VideoStart(char *filename)
 {
+       Host_StartVideo();
+
        if( videoarray->state != CLVIDEO_UNUSED )
                CL_CloseVideo( videoarray );
        if( !OpenVideo( videoarray, filename, va( CLVIDEOPREFIX "%s", filename ), 0 ) )