From 9e88ebd2e06f0a20eccf2c71456a7c3476ebb672 Mon Sep 17 00:00:00 2001
From: Thomas Guillem <thomas@gllm.fr>
Date: Wed, 22 Nov 2017 14:43:20 +0100
Subject: [PATCH] codec: videotoolbox: rename DrainDPB to DrainDPBLocked

---
 modules/codec/videotoolbox.m | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/videotoolbox.m b/modules/codec/videotoolbox.m
index 2f2082dcbb64..d1600aa5cbac 100644
--- a/modules/codec/videotoolbox.m
+++ b/modules/codec/videotoolbox.m
@@ -795,7 +795,7 @@ static picture_t * RemoveOneFrameFromDPB(decoder_sys_t *p_sys)
     return p_ret;
 }
 
-static void DrainDPB(decoder_t *p_dec, bool flush)
+static void DrainDPBLocked(decoder_t *p_dec, bool flush)
 {
     decoder_sys_t *p_sys = p_dec->p_sys;
     for( ;; )
@@ -1657,7 +1657,7 @@ static void Drain(decoder_t *p_dec, bool flush)
         VTDecompressionSessionWaitForAsynchronousFrames(p_sys->session);
 
     vlc_mutex_lock(&p_sys->lock);
-    DrainDPB(p_dec, flush);
+    DrainDPBLocked(p_dec, flush);
     p_sys->b_vt_flush = false;
     vlc_mutex_unlock(&p_sys->lock);
 }
-- 
GitLab