X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_video.c;h=692dc9410425ae467e22e9af84a511aa77e8be44;hp=8baebeddab8f27b44214cd8b9a1366e5b52c83c3;hb=091718e089617a7d1d24a4b418df3377bc1f6117;hpb=d6d1a3a746c459e53830bb1049b49a2f22b14e93 diff --git a/cl_video.c b/cl_video.c index 8baebedd..692dc941 100644 --- a/cl_video.c +++ b/cl_video.c @@ -69,7 +69,7 @@ static qboolean WakeVideo( clvideo_t * video ) 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; @@ -95,7 +95,7 @@ static clvideo_t* OpenVideo( clvideo_t *video, char *filename, char *name, int o 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; @@ -107,7 +107,7 @@ clvideo_t* CL_OpenVideo( char *filename, char *name, int owner ) return OpenVideo( video, filename, name, owner ); } -clvideo_t* CL_GetVideo( char *name ) +clvideo_t* CL_GetVideo( const char *name ) { int i; clvideo_t *video; @@ -239,7 +239,7 @@ int cl_videoplaying = false; // old, but still supported 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) @@ -268,6 +268,8 @@ static void CL_PlayVideo_f(void) { char name[1024]; + Host_StartVideo(); + if (Cmd_Argc() != 2) { Con_Print("usage: playvideo \nplays video named video/.dpv\n");