[vlc-devel] [PATCH 2/2] vout: don't wait for display if not needed

Steve Lhomme robux4 at ycbcr.xyz
Mon Mar 8 07:34:12 UTC 2021


On 2021-03-01 15:16, Thomas Guillem wrote:
> What about the chrono? The time to wait for the picture date won't be included anymore in the chrono average.

If there is no "display" callback there is no need to wait to call it.

The chrono doesn't take in account the time to wait for the right time 
to call display, nor the time it takes to do the display call. So there 
is no change here.

> On Mon, Feb 22, 2021, at 07:38, Steve Lhomme wrote:
>> OK for both
>>
>> On 2021-02-19 14:55, Thomas Guillem wrote:
>>> ---
>>>    src/video_output/video_output.c | 5 +++--
>>>    1 file changed, 3 insertions(+), 2 deletions(-)
>>>
>>> diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
>>> index d04d3f4d111..3817facd876 100644
>>> --- a/src/video_output/video_output.c
>>> +++ b/src/video_output/video_output.c
>>> @@ -1314,9 +1314,10 @@ static int ThreadDisplayRenderPicture(vout_thread_sys_t *vout, bool render_now)
>>>                 * rendered late. */
>>>                system_pts = system_now;
>>>            }
>>> -        else
>>> +        else if (vd->ops->display != NULL)
>>>            {
>>> -            /* Wait to reach system_pts */
>>> +            /* Wait to reach system_pts if the plugin doesn't handle
>>> +             * asynchronous display */
>>>                vlc_clock_Wait(sys->clock, system_now, pts, sys->rate,
>>>                               VOUT_REDISPLAY_DELAY);
>>>    
>>> -- 
>>> 2.30.0
>>>
>>> _______________________________________________
>>> vlc-devel mailing list
>>> To unsubscribe or modify your subscription options:
>>> https://mailman.videolan.org/listinfo/vlc-devel
>>>
>> _______________________________________________
>> vlc-devel mailing list
>> To unsubscribe or modify your subscription options:
>> https://mailman.videolan.org/listinfo/vlc-devel
> _______________________________________________
> 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