Commit 0f2ef8de authored by Steve Lhomme's avatar Steve Lhomme

filter_chain: use an empty callback owner for intermediate filters

This way we can use filter_NewPicture() which will use the allocator of
the filter if there is one.
parent 66df6e22
......@@ -102,7 +102,10 @@ static picture_t *filter_chain_VideoBufferNew( filter_t *filter )
{
// HACK as intermediate filters may not have the same video format as
// the last one handled by the owner
pic = picture_NewFromFormat( &filter->fmt_out.video );
filter_owner_t saved_owner = filter->owner;
filter->owner = (filter_owner_t) {};
pic = filter_NewPicture( filter );
filter->owner = saved_owner;
if( pic == NULL )
msg_Err( filter, "Failed to allocate picture" );
}
......
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