Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
b709563c
Commit
b709563c
authored
Oct 13, 2020
by
Steve Lhomme
Browse files
mosaic: drain potential attached pictures coming out of filters
parent
3b555903
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/stream_out/mosaic_bridge.c
View file @
b709563c
...
...
@@ -586,11 +586,26 @@ static void decoder_queue_video( decoder_t *p_dec, picture_t *p_pic )
if
(
p_sys
->
p_vf2
)
p_new_pic
=
filter_chain_VideoFilter
(
p_sys
->
p_vf2
,
p_new_pic
);
/* push the picture in the mosaic-struct structure */
bridged_es_t
*
p_es
=
p_sys
->
p_es
;
vlc_global_lock
(
VLC_MOSAIC_MUTEX
);
vlc_picture_chain_Append
(
&
p_es
->
pictures
,
p_new_pic
);
vlc_global_unlock
(
VLC_MOSAIC_MUTEX
);
if
(
p_new_pic
!=
NULL
)
{
vlc_global_lock
(
VLC_MOSAIC_MUTEX
);
vlc_picture_chain_Append
(
&
p_es
->
pictures
,
p_new_pic
);
vlc_global_unlock
(
VLC_MOSAIC_MUTEX
);
}
if
(
p_sys
->
p_vf2
)
{
/* push the picture in the mosaic-struct structure */
p_new_pic
=
filter_chain_VideoFilter
(
p_sys
->
p_vf2
,
NULL
);
while
(
p_new_pic
!=
NULL
)
{
vlc_global_lock
(
VLC_MOSAIC_MUTEX
);
vlc_picture_chain_Append
(
&
p_es
->
pictures
,
p_new_pic
);
vlc_global_unlock
(
VLC_MOSAIC_MUTEX
);
p_new_pic
=
filter_chain_VideoFilter
(
p_sys
->
p_vf2
,
NULL
);
}
}
}
static
int
Send
(
sout_stream_t
*
p_stream
,
void
*
id
,
block_t
*
p_buffer
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment