[vlc-commits] video_output: rename reuse to reuse_decoded in ThreadDisplayPreparePicture

Steve Lhomme git at videolan.org
Tue Oct 20 11:02:55 CEST 2020


vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Fri Oct 16 13:17:45 2020 +0200| [8e9694c5ba73407cf10b386925107facf124d9ad] | committer: Steve Lhomme

video_output: rename reuse to reuse_decoded in ThreadDisplayPreparePicture

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

 src/video_output/video_output.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index af8ca5c975..cb6bf795f0 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1060,7 +1060,7 @@ static void ThreadChangeFilters(vout_thread_sys_t *vout)
 
 
 /* */
-static int ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reuse,
+static int ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reuse_decoded,
                                        bool frame_by_frame, bool *paused)
 {
     vout_thread_sys_t *sys = vout;
@@ -1069,11 +1069,11 @@ static int ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reuse,
     vlc_mutex_lock(&sys->filter.lock);
 
     picture_t *picture = filter_chain_VideoFilter(sys->filter.chain_static, NULL);
-    assert(!reuse || !picture);
+    assert(!reuse_decoded || !picture);
 
     while (!picture) {
         picture_t *decoded;
-        if (reuse && sys->displayed.decoded) {
+        if (reuse_decoded && sys->displayed.decoded) {
             decoded = picture_Hold(sys->displayed.decoded);
         } else {
             decoded = picture_fifo_Pop(sys->decoder_fifo);
@@ -1130,7 +1130,7 @@ static int ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reuse,
 
         if (!decoded)
             break;
-        reuse = false;
+        reuse_decoded = false;
 
         if (sys->displayed.decoded)
             picture_Release(sys->displayed.decoded);



More information about the vlc-commits mailing list