vlc | branch: master | Marvin Scholz <[email protected]> | Sun Jul 28 13:13:12 2019 +0200| [14f5f65d612bcb6e8e61223e818ebc84b11103b5] | committer: Marvin Scholz
codec/videotoolbox: Fix uninitialized pts in late start case > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=14f5f65d612bcb6e8e61223e818ebc84b11103b5 --- modules/codec/videotoolbox.m | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m index b01b5d4511..f1a402ccb8 100644 --- a/modules/codec/videotoolbox.m +++ b/modules/codec/videotoolbox.m @@ -1269,8 +1269,6 @@ static int StartVideoToolbox(decoder_t *p_dec) if (HandleVTStatus(p_dec, status, NULL) != VLC_SUCCESS) return VLC_EGENERIC; - PtsInit(p_dec); - return VLC_SUCCESS; } @@ -1443,11 +1441,14 @@ static int OpenDecoder(vlc_object_t *p_this) } int i_ret = StartVideoToolbox(p_dec); - if (i_ret == VLC_SUCCESS) + if (i_ret == VLC_SUCCESS) { + PtsInit(p_dec); msg_Info(p_dec, "Using Video Toolbox to decode '%4.4s'", (char *)&p_dec->fmt_in.i_codec); - else + } else { CloseDecoder(p_this); + } + return i_ret; } _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
