Commit 43b42acc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

filter/win32: use constant callback structures

parent 62ec62cb
......@@ -525,8 +525,9 @@ static filter_t *CreateFilter( vlc_object_t *p_this, const es_format_t *p_fmt_in
if (unlikely(p_filter == NULL))
return NULL;
static const struct filter_video_callbacks cbs = { NewBuffer };
p_filter->b_allow_fmt_out_change = false;
p_filter->owner.video.buffer_new = NewBuffer;
p_filter->owner.video = &cbs;
p_filter->owner.sys = p_this;
es_format_InitFromVideo( &p_filter->fmt_in, &p_fmt_in->video );
......
......@@ -205,8 +205,9 @@ static filter_t *CreateFilter( vlc_object_t *p_this, const es_format_t *p_fmt_in
if (unlikely(p_filter == NULL))
return NULL;
static const struct filter_video_callbacks cbs = { NewBuffer };
p_filter->b_allow_fmt_out_change = false;
p_filter->owner.video.buffer_new = NewBuffer;
p_filter->owner.video = &cbs;
p_filter->owner.sys = p_this;
es_format_InitFromVideo( &p_filter->fmt_in, &p_fmt_in->video );
......
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