[vlc-devel] [PATCH 01/19] video output: only update the current format if filters were added in the chain
Thomas Guillem
thomas at gllm.fr
Tue Nov 5 17:50:37 CET 2019
OK with this set but I would prefer it to be pushed with one filter module using vctx, as an example and also to provide small testing.
On Tue, Nov 5, 2019, at 16:18, Steve Lhomme wrote:
> ---
> src/video_output/video_output.c | 5 ++++-
> 1 file changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
> index 55aee18d378..aae1e104d2c 100644
> --- a/src/video_output/video_output.c
> +++ b/src/video_output/video_output.c
> @@ -840,7 +840,10 @@ static void ThreadChangeFilters(vout_thread_t *vout,
> free(e->name);
> free(e);
> }
> - p_fmt_current = filter_chain_GetFmtOut(chain);
> + if (!filter_chain_IsEmpty(chain))
> + {
> + p_fmt_current = filter_chain_GetFmtOut(chain);
> + }
> vlc_array_clear(array);
> }
>
> --
> 2.17.1
>
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel
More information about the vlc-devel
mailing list