[vlc-commits] decoder: log when the decoder pool fails to be created
Steve Lhomme
git at videolan.org
Mon Dec 9 09:01:28 CET 2019
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Mon Nov 18 13:06:53 2019 +0100| [3a934bb56cae63605797d54cdd49e028c94f044e] | committer: Steve Lhomme
decoder: log when the decoder pool fails to be created
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3a934bb56cae63605797d54cdd49e028c94f044e
---
src/input/decoder.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/input/decoder.c b/src/input/decoder.c
index 48405066dc..2aaacf2044 100644
--- a/src/input/decoder.c
+++ b/src/input/decoder.c
@@ -453,7 +453,12 @@ static int ModuleThread_UpdateVideoFormat( decoder_t *p_dec, vlc_video_context *
p_owner->out_pool = picture_pool_NewFromFormat( &p_dec->fmt_out.video,
dpb_size + p_dec->i_extra_picture_buffers + 1 );
if (p_owner->out_pool == NULL)
+ {
+ msg_Err(p_dec, "Failed to create a pool of %d %4.4s pictures",
+ dpb_size + p_dec->i_extra_picture_buffers + 1,
+ (char*)&p_dec->fmt_out.video.i_chroma);
return -1;
+ }
}
int res;
if (p_owner->vout_thread_started)
More information about the vlc-commits
mailing list