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;
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)
{
+ Host_StartVideo();
+
if( videoarray->state != CLVIDEO_UNUSED )
CL_CloseVideo( videoarray );
if( !OpenVideo( videoarray, filename, va( CLVIDEOPREFIX "%s", filename ), 0 ) )
{
char name[1024];
+ Host_StartVideo();
+
if (Cmd_Argc() != 2)
{
Con_Print("usage: playvideo <videoname>\nplays video named video/<videoname>.dpv\n");