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 48dc499..876a0a7 100644 (file)
@@ -99,6 +99,8 @@ void CDAudio_Play (qbyte track, qboolean looping)
 {
        sfx_t* sfx;
 
+       Host_StartVideo();
+
        if (!enabled)
                return;
 
index 51fccbb..8baebed 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 ) )