[vlc-devel] [PATCH] vout: warn when we get less display pictures than requested
Steve Lhomme
robux4 at videolabs.io
Tue Apr 21 09:56:55 CEST 2015
Patch replaced by (v2) aka https://patches.videolan.org/patch/8429/
On Mon, Apr 20, 2015 at 1:13 PM, Steve Lhomme <robux4 at videolabs.io> wrote:
> ---
> src/video_output/vout_wrapper.c | 10 +++++++---
> 1 file changed, 7 insertions(+), 3 deletions(-)
>
> diff --git a/src/video_output/vout_wrapper.c b/src/video_output/vout_wrapper.c
> index d172bcc..3790c98 100644
> --- a/src/video_output/vout_wrapper.c
> +++ b/src/video_output/vout_wrapper.c
> @@ -130,9 +130,13 @@ int vout_InitWrapper(vout_thread_t *vout)
> const unsigned reserved_picture = DISPLAY_PICTURE_COUNT +
> private_picture +
> kept_picture;
> - picture_pool_t *display_pool =
> - vout_display_Pool(vd, allow_dr ? __MAX(VOUT_MAX_PICTURES,
> - reserved_picture + decoder_picture) : 3);
> + const unsigned display_pool_size = allow_dr ? __MAX(VOUT_MAX_PICTURES,
> + reserved_picture + decoder_picture) : 3;
> + picture_pool_t *display_pool = vout_display_Pool(vd, display_pool_size);
> + if ( picture_pool_GetSize(display_pool) < display_pool_size )
> + msg_Warn(vout, "Not enough display buffers in the pool, requested %d got %d",
> + display_pool_size, picture_pool_GetSize(display_pool));
> +
> if (allow_dr &&
> picture_pool_GetSize(display_pool) >= reserved_picture + decoder_picture) {
> sys->dpb_size = picture_pool_GetSize(display_pool) - reserved_picture;
> --
> 2.3.0
>
> _______________________________________________
> 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