vlc | branch: master | Steve Lhomme <[email protected]> | Tue Jun 25 09:03:34 2019 +0200| [9d47846f480298c03fce66e6fa8d701efca7172d] | committer: Steve Lhomme
decoder: allow the buffer_new from the decoder to be NULL Create a picture_t on the fly by default. > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=9d47846f480298c03fce66e6fa8d701efca7172d --- src/input/decoder_helpers.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/input/decoder_helpers.c b/src/input/decoder_helpers.c index 1c4593db30..7384e2bda0 100644 --- a/src/input/decoder_helpers.c +++ b/src/input/decoder_helpers.c @@ -88,6 +88,8 @@ int decoder_UpdateVideoFormat( decoder_t *dec ) picture_t *decoder_NewPicture( decoder_t *dec ) { vlc_assert( dec->fmt_in.i_cat == VIDEO_ES && dec->cbs != NULL ); + if (dec->cbs->video.buffer_new == NULL) + return picture_NewFromFormat( &dec->fmt_out.video ); return dec->cbs->video.buffer_new( dec ); } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
