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:
parent
927c58854f
commit
b43adea6c8
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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)),
|
||||
|
Loading…
Reference in New Issue
Block a user