return true;
}
-static clvideo_t* OpenVideo( clvideo_t *video, char *filename, char *name, int owner )
+static clvideo_t* OpenVideo( clvideo_t *video, const char *filename, const char *name, int owner )
{
strncpy( video->filename, filename, MAX_QPATH );
video->ownertag = owner;
return video;
}
-clvideo_t* CL_OpenVideo( char *filename, char *name, int owner )
+clvideo_t* CL_OpenVideo( const char *filename, const char *name, int owner )
{
clvideo_t *video;
return OpenVideo( video, filename, name, owner );
}
-clvideo_t* CL_GetVideo( char *name )
+clvideo_t* CL_GetVideo( const char *name )
{
int i;
clvideo_t *video;
return;
}
} while( video->framenum < destframe );
- R_UpdateTexture( video->cpif.tex, video->imagedata );
+ R_UpdateTexture( video->cpif.tex, (unsigned char *)video->imagedata );
}
}
void CL_DrawVideo(void)
{
if (cl_videoplaying)
- DrawQ_Pic(0, 0, videoarray->cpif.name, vid.conwidth, vid.conheight, 1, 1, 1, 1, 0);
+ DrawQ_Pic(0, 0, videoarray->cpif.name, vid_conwidth.integer, vid_conheight.integer, 1, 1, 1, 1, 0);
}
void CL_VideoStart(char *filename)
{
char name[1024];
+ Host_StartVideo();
+
if (Cmd_Argc() != 2)
{
Con_Print("usage: playvideo <videoname>\nplays video named video/<videoname>.dpv\n");