From 58a76be8b4e9dd4012e7e70561e1b87146e95e43 Mon Sep 17 00:00:00 2001
From: Mehdi Sabwat <mehdisabwat@gmail.com>
Date: Tue, 10 Mar 2020 16:49:02 +0100
Subject: [PATCH] add TESTED_HASH to manage vlc updates

---
 compile.sh | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/compile.sh b/compile.sh
index 484fb39..04bac1b 100755
--- a/compile.sh
+++ b/compile.sh
@@ -26,11 +26,15 @@ if [ ! -d emsdk ]; then
 fi
 
 cd $WORK_DIR
-
+TESTED_HASH="7bad2a86"
 # Go go go vlc
 if [ ! -d vlc ]; then
     diagnostic "VLC source not found, cloning"
-    git clone http://git.videolan.org/git/vlc.git vlc
+    git clone http://git.videolan.org/git/vlc.git vlc || checkfail "VLC source: git clone failed"
+    cd vlc
+    diagnostic "VLC source: resetting to the TESTED_HASH commit (${TESTED_HASH})"
+    git reset --hard ${TESTED_HASH} || checkfail "VLC source: TESTED_HASH ${TESTED_HASH} not found"
+    cd ..
     checkfail "vlc source: git clone failed"
 fi
 
-- 
GitLab