Commit bdc1e216 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

Fixed invalid video dimensions after int->unsigned changes.

parent 179450e6
...@@ -438,8 +438,10 @@ static void VoutGetDisplayCfg(vout_thread_t *vout, vout_display_cfg_t *cfg, cons ...@@ -438,8 +438,10 @@ static void VoutGetDisplayCfg(vout_thread_t *vout, vout_display_cfg_t *cfg, cons
/* Load configuration */ /* Load configuration */
cfg->is_fullscreen = var_CreateGetBool(vout, "fullscreen"); cfg->is_fullscreen = var_CreateGetBool(vout, "fullscreen");
cfg->display.title = title; cfg->display.title = title;
cfg->display.width = var_CreateGetInteger(vout, "width"); const int display_width = var_CreateGetInteger(vout, "width");
cfg->display.height = var_CreateGetInteger(vout, "height"); const int display_height = var_CreateGetInteger(vout, "height");
cfg->display.width = display_width > 0 ? display_width : 0;
cfg->display.height = display_height > 0 ? display_height : 0;
cfg->is_display_filled = var_CreateGetBool(vout, "autoscale"); cfg->is_display_filled = var_CreateGetBool(vout, "autoscale");
cfg->display.sar.num = 1; /* TODO monitor AR */ cfg->display.sar.num = 1; /* TODO monitor AR */
cfg->display.sar.den = 1; cfg->display.sar.den = 1;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment