if (!sys)
return VLC_ENOMEM;
- char *chroma_fmt = config_GetPsz(vd, "vout-snapshot-chroma");
+ char *chroma_fmt = var_InheritString(vd, "vout-snapshot-chroma");
const vlc_fourcc_t chroma = vlc_fourcc_GetCodecFromString(VIDEO_ES, chroma_fmt);
free(chroma_fmt);
return VLC_EGENERIC;
}
- const int width = config_GetInt(vd, "vout-snapshot-width");
- const int height = config_GetInt(vd, "vout-snapshot-height");
+ const int width = var_InheritInteger(vd, "vout-snapshot-width");
+ const int height = var_InheritInteger(vd, "vout-snapshot-height");
if (width <= 0 || height <= 0) {
msg_Err(vd, "snapshot-width/height are invalid");
free(sys);
}
sys->index = 0;
- sys->count = config_GetInt(vd, "vout-snapshot-cache-size");
+ sys->count = var_InheritInteger(vd, "vout-snapshot-cache-size");
/* FIXME following code leaks in case of error */