1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-01 20:00:37 +00:00

video_out: rename privsize member to priv_size

This commit is contained in:
wm4 2012-08-06 17:51:53 +02:00
parent 927c58854f
commit b43adea6c8
3 changed files with 5 additions and 5 deletions

View File

@ -172,8 +172,8 @@ const struct vo_driver *video_out_drivers[] =
static int vo_preinit(struct vo *vo, char *arg)
{
if (vo->driver->privsize)
vo->priv = talloc_zero_size(vo, vo->driver->privsize);
if (vo->driver->priv_size)
vo->priv = talloc_zero_size(vo, vo->driver->priv_size);
if (vo->driver->options) {
struct m_config *cfg = m_config_simple(vo->priv);
talloc_steal(vo->priv, cfg);

View File

@ -229,8 +229,8 @@ struct vo_driver {
*/
void (*uninit)(struct vo *vo);
// Size of private struct for automatic allocation
int privsize;
// Size of private struct for automatic allocation (0 doesn't allocate)
int priv_size;
// List of options to parse into priv struct (requires privsize to be set)
const struct m_option *options;

View File

@ -1694,7 +1694,7 @@ const struct vo_driver video_out_vdpau = {
.flip_page_timed = flip_page_timed,
.check_events = check_events,
.uninit = uninit,
.privsize = sizeof(struct vdpctx),
.priv_size = sizeof(struct vdpctx),
.options = (const struct m_option []){
OPT_INTRANGE("deint", deint, 0, -4, 4),
OPT_FLAG_ON("chroma-deint", chroma_deint, 0, OPTDEF_INT(1)),