[vlc-commits] vout: don't wait for display if not needed

Thomas Guillem git at videolan.org
Mon Mar 8 09:42:49 UTC 2021


vlc | branch: master | Thomas Guillem <thomas at gllm.fr> | Fri Feb 19 14:54:25 2021 +0100| [3f75f04af6be02fb9fd61715e0d429608e870668] | committer: Thomas Guillem

vout: don't wait for display if not needed

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=3f75f04af6be02fb9fd61715e0d429608e870668
---

 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 be501eaea8..0e23e3f4ed 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1312,9 +1312,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);
 



More information about the vlc-commits mailing list