Skip to content

Commit

Permalink
newconfig: add check for x264 table
Browse files Browse the repository at this point in the history
  • Loading branch information
metalefty committed Aug 20, 2024
1 parent 0a0a99b commit cdb6957
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions xrdp/xrdp_newconfig.c
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,11 @@ nc_load_gfx_x264_ct(toml_table_t *tfile, const int connection_type,
}

toml_table_t *x264 = toml_table_in(tfile, "x264");
if (!x264)
{
NCLOG(LOG_LEVEL_WARNING, "x264 params are not defined");
return 1;
}

toml_table_t *x264_ct =
toml_table_in(x264, rdpbcgr_connection_type_names[connection_type]);
Expand Down

0 comments on commit cdb6957

Please sign in to comment.