1
0
mirror of https://github.com/jojo61/vdr-plugin-softhdcuvid.git synced 2023-10-10 13:37:41 +02:00

Fix shaders for vaapi Version

This commit is contained in:
jojo61 2020-06-16 07:46:27 +02:00
parent a28e368c1b
commit 05c2585238

View File

@ -5312,7 +5312,7 @@ void pl_log_intern(void *stream, enum pl_log_level level, const char *msg)
void InitPlacebo()
{
Debug(3, "Init Placebo mit API %d\n", PL_API_VER);
CuvidMessage(2,"Init Placebo mit API %d\n", PL_API_VER);
p = calloc(1, sizeof(struct priv));
if (!p)
@ -6316,13 +6316,13 @@ void VideoSetRefresh(char *r)
int VideoSetShader(char *s)
{
#if defined CUVID && PL_API_VER >= 58
#if defined PLACEBO && PL_API_VER >= 58
if(num_shaders == NUM_SHADERS)
return -1;
p = malloc(strlen(s)+1);
memcpy(p,s,strlen(s)+1);
shadersp[num_shaders++] = p;
Debug(3,"Use Shader %s\n",s);
CuvidMessage(2,"Use Shader %s\n",s);
return 0;
#else
printf("Shaders are only support with placebo\n");