Commit 242a8af9 authored by Thomas Guillem's avatar Thomas Guillem

image: remove ugly cast

parent 7ce308c9
......@@ -762,14 +762,18 @@ static void DeleteEncoder( encoder_t * p_enc )
p_enc = NULL;
}
static picture_t *filter_new_picture( filter_t *p_filter )
{
return picture_NewFromFormat( &p_filter->fmt_out.video );
}
static filter_t *CreateFilter( vlc_object_t *p_this, const es_format_t *p_fmt_in,
const video_format_t *p_fmt_out )
{
filter_t *p_filter;
p_filter = vlc_custom_create( p_this, sizeof(filter_t), "filter" );
p_filter->owner.video.buffer_new =
(picture_t *(*)(filter_t *))video_new_buffer;
p_filter->owner.video.buffer_new = filter_new_picture;
es_format_Copy( &p_filter->fmt_in, p_fmt_in );
es_format_Copy( &p_filter->fmt_out, p_fmt_in );
......
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