Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
VLCKit
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
72
Issues
72
List
Boards
Labels
Service Desk
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
VLCKit
Commits
4b2699ee
Commit
4b2699ee
authored
Sep 19, 2017
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix compilation for x86_64 along with the current iOS deployment target
parent
fb089364
Changes
14
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
63 additions
and
71 deletions
+63
-71
Resources/MobileVLCKit/patches/0001-arm_neon-added-function-macro-to-handle-the-undersco.patch
...rm_neon-added-function-macro-to-handle-the-undersco.patch
+3
-3
Resources/MobileVLCKit/patches/0002-deinterlace-merge-use-a-macro-to-fix-compilation-for.patch
...einterlace-merge-use-a-macro-to-fix-compilation-for.patch
+3
-3
Resources/MobileVLCKit/patches/0003-arm_neon-work-around-libtool-issue.patch
...Kit/patches/0003-arm_neon-work-around-libtool-issue.patch
+3
-3
Resources/MobileVLCKit/patches/0004-arm_neon-fix-iOS-linking.patch
.../MobileVLCKit/patches/0004-arm_neon-fix-iOS-linking.patch
+3
-3
Resources/MobileVLCKit/patches/0005-disable-neon-volume-plugin.patch
...obileVLCKit/patches/0005-disable-neon-volume-plugin.patch
+3
-3
Resources/MobileVLCKit/patches/0006-Enable-System-DL.patch
Resources/MobileVLCKit/patches/0006-Enable-System-DL.patch
+3
-3
Resources/MobileVLCKit/patches/0007-deinterlace-merge-arm64-fix-linking-on-appleOS.patch
...0007-deinterlace-merge-arm64-fix-linking-on-appleOS.patch
+3
-3
Resources/MobileVLCKit/patches/0008-http-add-vlc_http_cookies_clear.patch
...VLCKit/patches/0008-http-add-vlc_http_cookies_clear.patch
+3
-3
Resources/MobileVLCKit/patches/0009-libvlc_media-add-cookie_jar-API.patch
...VLCKit/patches/0009-libvlc_media-add-cookie_jar-API.patch
+5
-5
Resources/MobileVLCKit/patches/0010-contrib-gcrypt-work-around-a-libtool-limitation.patch
...010-contrib-gcrypt-work-around-a-libtool-limitation.patch
+3
-3
Resources/MobileVLCKit/patches/0011-contrib-gcrypt-fix-tvOS-compilation.patch
...it/patches/0011-contrib-gcrypt-fix-tvOS-compilation.patch
+3
-3
Resources/MobileVLCKit/patches/0012-contrib-gcrypt-update-patches.patch
...leVLCKit/patches/0012-contrib-gcrypt-update-patches.patch
+3
-3
Resources/MobileVLCKit/patches/0013-build-rename-exported-symbols-by-module.patch
...atches/0013-build-rename-exported-symbols-by-module.patch
+3
-3
Resources/MobileVLCKit/patches/0014-Replace-thread-local-with-pthread-TSD.patch
.../patches/0014-Replace-thread-local-with-pthread-TSD.patch
+22
-30
No files found.
Resources/MobileVLCKit/patches/0001-arm_neon-added-function-macro-to-handle-the-undersco.patch
View file @
4b2699ee
From
c7a11d516076db01f0b39cee8cbd66389c0a3492
Mon Sep 17 00:00:00 2001
From
a2747128e9e682640bfe3bfb313dc935cf1a0264
Mon Sep 17 00:00:00 2001
From: David Geldreich <david.geldreich@free.fr>
From: David Geldreich <david.geldreich@free.fr>
Date: Fri, 20 Apr 2012 16:41:19 +0200
Date: Fri, 20 Apr 2012 16:41:19 +0200
Subject: [PATCH 01/1
6
] arm_neon: added function macro to handle the underscore
Subject: [PATCH 01/1
4
] arm_neon: added function macro to handle the underscore
prefix for the iOS ARM ABI
prefix for the iOS ARM ABI
---
---
...
@@ -65,5 +65,5 @@ index 0000000000..d853255fec
...
@@ -65,5 +65,5 @@ index 0000000000..d853255fec
+.endm
+.endm
+
+
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/0002-deinterlace-merge-use-a-macro-to-fix-compilation-for.patch
View file @
4b2699ee
From e
d6d6b2ed5f1fc2fb81677912fe07d1647028c9c
Mon Sep 17 00:00:00 2001
From e
48dc19bfa4fdf61a27981603e2355dc1549dfbd
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Fri, 10 Aug 2012 16:02:07 +0200
Date: Fri, 10 Aug 2012 16:02:07 +0200
Subject: [PATCH 02/1
6
] deinterlace/merge: use a macro to fix compilation for
Subject: [PATCH 02/1
4
] deinterlace/merge: use a macro to fix compilation for
iOS
iOS
---
---
...
@@ -82,5 +82,5 @@ index dd779029ae..03e5042b28 100644
...
@@ -82,5 +82,5 @@ index dd779029ae..03e5042b28 100644
b 1b
b 1b
+endfunc
+endfunc
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/0003-arm_neon-work-around-libtool-issue.patch
View file @
4b2699ee
From
ea3b6600a131253d221864f0fef815afccc8fdb2
Mon Sep 17 00:00:00 2001
From
c3b57ed59a7bf53782990dafecf69b043b170893
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Thu, 18 Dec 2014 22:14:55 +0100
Date: Thu, 18 Dec 2014 22:14:55 +0100
Subject: [PATCH 03/1
6
] arm_neon: work-around libtool issue
Subject: [PATCH 03/1
4
] arm_neon: work-around libtool issue
---
---
modules/arm_neon/Makefile.am | 2 ++
modules/arm_neon/Makefile.am | 2 ++
...
@@ -18,5 +18,5 @@ index db81ec0b84..e67e07e61c 100644
...
@@ -18,5 +18,5 @@ index db81ec0b84..e67e07e61c 100644
libchroma_yuv_neon_plugin_la_SOURCES = \
libchroma_yuv_neon_plugin_la_SOURCES = \
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/0004-arm_neon-fix-iOS-linking.patch
View file @
4b2699ee
From
60f4b7c0623df8e01f24aa81ace7597fc5ea0b89
Mon Sep 17 00:00:00 2001
From
f7f6a5875d8c7907fb7af5fc69259d370588abbb
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Wed, 10 Dec 2014 22:14:55 +0100
Date: Wed, 10 Dec 2014 22:14:55 +0100
Subject: [PATCH 04/1
6
] arm_neon: fix iOS linking
Subject: [PATCH 04/1
4
] arm_neon: fix iOS linking
---
---
modules/arm_neon/amplify.S | 7 ++---
modules/arm_neon/amplify.S | 7 ++---
...
@@ -194,5 +194,5 @@ index a94ae8539f..54b43a79e3 100644
...
@@ -194,5 +194,5 @@ index a94ae8539f..54b43a79e3 100644
pop {r4,pc}
pop {r4,pc}
+endfunc
+endfunc
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/0005-disable-neon-volume-plugin.patch
View file @
4b2699ee
From
2f9f0c57fb5ee1183d6b7b4bbe8f4bcfe972ba78
Mon Sep 17 00:00:00 2001
From
c70dccebb53fa81ea95402ede8aabf058e0f1b75
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Wed, 10 Dec 2014 22:14:55 +0100
Date: Wed, 10 Dec 2014 22:14:55 +0100
Subject: [PATCH 05/1
6
] disable neon volume plugin
Subject: [PATCH 05/1
4
] disable neon volume plugin
---
---
modules/arm_neon/Makefile.am | 1 -
modules/arm_neon/Makefile.am | 1 -
...
@@ -19,5 +19,5 @@ index e67e07e61c..690975235f 100644
...
@@ -19,5 +19,5 @@ index e67e07e61c..690975235f 100644
libyuv_rgb_neon_plugin.la
libyuv_rgb_neon_plugin.la
endif
endif
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/000
7
-Enable-System-DL.patch
→
Resources/MobileVLCKit/patches/000
6
-Enable-System-DL.patch
View file @
4b2699ee
From
79be1791f01937c28daec085abe28920df964692
Mon Sep 17 00:00:00 2001
From
277e071c76896ef63e202c50fce511aa17bff871
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Fri, 22 Jul 2016 11:11:44 +0200
Date: Fri, 22 Jul 2016 11:11:44 +0200
Subject: [PATCH 0
7/16
] Enable System DL
Subject: [PATCH 0
6/14
] Enable System DL
---
---
contrib/src/ffmpeg/patch-as-patch-can.patch | 20 ++++++++++++++++++++
contrib/src/ffmpeg/patch-as-patch-can.patch | 20 ++++++++++++++++++++
...
@@ -58,5 +58,5 @@ index 41d16a4fb2..3e5f910e99 100644
...
@@ -58,5 +58,5 @@ index 41d16a4fb2..3e5f910e99 100644
.ffmpeg: ffmpeg
.ffmpeg: ffmpeg
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/000
8
-deinterlace-merge-arm64-fix-linking-on-appleOS.patch
→
Resources/MobileVLCKit/patches/000
7
-deinterlace-merge-arm64-fix-linking-on-appleOS.patch
View file @
4b2699ee
From
a3a9ef0bc07d174480bf76df79c86cb68f7d7291
Mon Sep 17 00:00:00 2001
From
5cb4cb24f59df343e5a7db2334b4eccc75c3b815
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Mon, 12 Sep 2016 17:04:05 +0200
Date: Mon, 12 Sep 2016 17:04:05 +0200
Subject: [PATCH 0
8/16
] deinterlace-merge-arm64: fix linking on appleOS
Subject: [PATCH 0
7/14
] deinterlace-merge-arm64: fix linking on appleOS
---
---
modules/arm_neon/asm64.S | 46 ++++++++++++++++++++++++++
modules/arm_neon/asm64.S | 46 ++++++++++++++++++++++++++
...
@@ -107,5 +107,5 @@ index db19e54caf..63c04d3fdd 100644
...
@@ -107,5 +107,5 @@ index db19e54caf..63c04d3fdd 100644
ret
ret
+endfunc
+endfunc
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/000
9
-http-add-vlc_http_cookies_clear.patch
→
Resources/MobileVLCKit/patches/000
8
-http-add-vlc_http_cookies_clear.patch
View file @
4b2699ee
From
9b30a88e8d4632a55ab20e3c02425dc3ce2504e4
Mon Sep 17 00:00:00 2001
From
ab7f0035a4eb7f74c6af0a81d752df201a498d57
Mon Sep 17 00:00:00 2001
From: Thomas Guillem <thomas@gllm.fr>
From: Thomas Guillem <thomas@gllm.fr>
Date: Fri, 16 Sep 2016 15:51:10 +0200
Date: Fri, 16 Sep 2016 15:51:10 +0200
Subject: [PATCH 0
9/16
] http: add vlc_http_cookies_clear
Subject: [PATCH 0
8/14
] http: add vlc_http_cookies_clear
Clear all cookies without deleting the jar.
Clear all cookies without deleting the jar.
---
---
...
@@ -61,5 +61,5 @@ index 2e4d3a8663..0929758f62 100644
...
@@ -61,5 +61,5 @@ index 2e4d3a8663..0929758f62 100644
}
}
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/00
10
-libvlc_media-add-cookie_jar-API.patch
→
Resources/MobileVLCKit/patches/00
09
-libvlc_media-add-cookie_jar-API.patch
View file @
4b2699ee
From
d26b80e6ed88694c7d72af4013b283f050d97e53
Mon Sep 17 00:00:00 2001
From
b64b07ccaac8c66f1358b1b711fb33cf94725627
Mon Sep 17 00:00:00 2001
From: Thomas Guillem <thomas@gllm.fr>
From: Thomas Guillem <thomas@gllm.fr>
Date: Fri, 16 Sep 2016 15:51:11 +0200
Date: Fri, 16 Sep 2016 15:51:11 +0200
Subject: [PATCH
10/16
] libvlc_media: add cookie_jar API
Subject: [PATCH
09/14
] libvlc_media: add cookie_jar API
---
---
include/vlc/libvlc_media.h | 35 +++++++++++++++++++++++++++++++++++
include/vlc/libvlc_media.h | 35 +++++++++++++++++++++++++++++++++++
...
@@ -138,7 +138,7 @@ index 5a67e9ff60..0f0341e260 100644
...
@@ -138,7 +138,7 @@ index 5a67e9ff60..0f0341e260 100644
/* Media Descriptor */
/* Media Descriptor */
diff --git a/lib/media_player.c b/lib/media_player.c
diff --git a/lib/media_player.c b/lib/media_player.c
index
ebe711e310..34b539f370
100644
index
b5677ae7ec..14d1c6a1a4
100644
--- a/lib/media_player.c
--- a/lib/media_player.c
+++ b/lib/media_player.c
+++ b/lib/media_player.c
@@ -620,6 +620,7 @@
libvlc_media_player_new( libvlc_instance_t *instance )
@@ -620,6 +620,7 @@
libvlc_media_player_new( libvlc_instance_t *instance )
...
@@ -149,7 +149,7 @@ index ebe711e310..34b539f370 100644
...
@@ -149,7 +149,7 @@ index ebe711e310..34b539f370 100644
/* Video */
/* Video */
var_Create (mp, "vout", VLC_VAR_STRING|VLC_VAR_DOINHERIT);
var_Create (mp, "vout", VLC_VAR_STRING|VLC_VAR_DOINHERIT);
@@ -96
5,6 +966
,12 @@
int libvlc_media_player_play( libvlc_media_player_t *p_mi )
@@ -96
4,6 +965
,12 @@
int libvlc_media_player_play( libvlc_media_player_t *p_mi )
for( size_t i = 0; i < ARRAY_SIZE( p_mi->selected_es ); ++i )
for( size_t i = 0; i < ARRAY_SIZE( p_mi->selected_es ); ++i )
p_mi->selected_es[i] = ES_INIT;
p_mi->selected_es[i] = ES_INIT;
...
@@ -163,5 +163,5 @@ index ebe711e310..34b539f370 100644
...
@@ -163,5 +163,5 @@ index ebe711e310..34b539f370 100644
p_input_thread = input_Create( p_mi, p_mi->p_md->p_input_item, NULL,
p_input_thread = input_Create( p_mi, p_mi->p_md->p_input_item, NULL,
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/001
1
-contrib-gcrypt-work-around-a-libtool-limitation.patch
→
Resources/MobileVLCKit/patches/001
0
-contrib-gcrypt-work-around-a-libtool-limitation.patch
View file @
4b2699ee
From
d2863a49af7f361c4c6bb68a394cbe5350d9e52b
Mon Sep 17 00:00:00 2001
From
ad09210ef4be3f2d241e90e9ca2147615c1f5cba
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Sun, 7 Dec 2014 20:02:18 +0100
Date: Sun, 7 Dec 2014 20:02:18 +0100
Subject: [PATCH 1
1/16
] contrib/gcrypt: work-around a libtool limitation
Subject: [PATCH 1
0/14
] contrib/gcrypt: work-around a libtool limitation
---
---
contrib/src/gcrypt/rules.mak | 1 +
contrib/src/gcrypt/rules.mak | 1 +
...
@@ -53,5 +53,5 @@ index 0000000000..df97ffb488
...
@@ -53,5 +53,5 @@ index 0000000000..df97ffb488
+ AM_CFLAGS = $(GPG_ERROR_CFLAGS)
+ AM_CFLAGS = $(GPG_ERROR_CFLAGS)
+
+
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/001
2
-contrib-gcrypt-fix-tvOS-compilation.patch
→
Resources/MobileVLCKit/patches/001
1
-contrib-gcrypt-fix-tvOS-compilation.patch
View file @
4b2699ee
From
70f18c642cba18e08f57202fc59d0d9fcd99a69a
Mon Sep 17 00:00:00 2001
From
e44f2cf66ec764a5360eedd3ac9fea558f29dd6d
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Sat, 3 Oct 2015 22:45:14 +0200
Date: Sat, 3 Oct 2015 22:45:14 +0200
Subject: [PATCH 1
2/16
] contrib/gcrypt: fix tvOS compilation
Subject: [PATCH 1
1/14
] contrib/gcrypt: fix tvOS compilation
---
---
contrib/src/gcrypt/fix-sha1-ssse3-for-clang.patch | 16 ++++++++++++++++
contrib/src/gcrypt/fix-sha1-ssse3-for-clang.patch | 16 ++++++++++++++++
...
@@ -56,5 +56,5 @@ index c2d4b934f4..dbd556be61 100644
...
@@ -56,5 +56,5 @@ index c2d4b934f4..dbd556be61 100644
GCRYPT_CONF += --disable-aesni-support
GCRYPT_CONF += --disable-aesni-support
else
else
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/001
3
-contrib-gcrypt-update-patches.patch
→
Resources/MobileVLCKit/patches/001
2
-contrib-gcrypt-update-patches.patch
View file @
4b2699ee
From
3e96635d5e52db07500a373b35f32c21a7bee88e
Mon Sep 17 00:00:00 2001
From
02ba5f23ab54ff0a842f1276286381209429eb75
Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
From: =?UTF-8?q?Felix=20Paul=20K=C3=BChne?= <fkuehne@videolan.org>
Date: Mon, 12 Sep 2016 17:03:37 +0200
Date: Mon, 12 Sep 2016 17:03:37 +0200
Subject: [PATCH 1
3/16
] contrib/gcrypt: update patches
Subject: [PATCH 1
2/14
] contrib/gcrypt: update patches
---
---
contrib/src/gcrypt/fix-sha1-ssse3-for-clang.patch | 308 ++++++++++++++++++++-
contrib/src/gcrypt/fix-sha1-ssse3-for-clang.patch | 308 ++++++++++++++++++++-
...
@@ -363,5 +363,5 @@ index df97ffb488..957f268ad2 100644
...
@@ -363,5 +363,5 @@ index df97ffb488..957f268ad2 100644
# Need to include ../src in addition to top_srcdir because gcrypt.h is
# Need to include ../src in addition to top_srcdir because gcrypt.h is
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/001
5
-build-rename-exported-symbols-by-module.patch
→
Resources/MobileVLCKit/patches/001
3
-build-rename-exported-symbols-by-module.patch
View file @
4b2699ee
From
8ad8964668fbee7fa99fd74facb24f70b33b5af6
Mon Sep 17 00:00:00 2001
From
498e6e260d05ddee45e934b91b7e5b26aa503fd9
Mon Sep 17 00:00:00 2001
From: Thomas Guillem <thomas@gllm.fr>
From: Thomas Guillem <thomas@gllm.fr>
Date: Tue, 11 Apr 2017 15:15:26 +0200
Date: Tue, 11 Apr 2017 15:15:26 +0200
Subject: [PATCH 1
5/16
] build: rename exported symbols by module
Subject: [PATCH 1
3/14
] build: rename exported symbols by module
This is quite ugly and temporary. Ideally we should rename symbols in binaries like the Android script do.
This is quite ugly and temporary. Ideally we should rename symbols in binaries like the Android script do.
---
---
...
@@ -319,5 +319,5 @@ index ecc26e0d60..0c71cda6d2 100644
...
@@ -319,5 +319,5 @@ index ecc26e0d60..0c71cda6d2 100644
* frames, each algorithm is responsible for setting the offset correctly.
* frames, each algorithm is responsible for setting the offset correctly.
* (The default is 0, so if that is correct, there's no need to do anything.)
* (The default is 0, so if that is correct, there's no need to do anything.)
--
--
2.1
1.0
2.1
4.1
Resources/MobileVLCKit/patches/001
6
-Replace-thread-local-with-pthread-TSD.patch
→
Resources/MobileVLCKit/patches/001
4
-Replace-thread-local-with-pthread-TSD.patch
View file @
4b2699ee
From
41518beee68b6fe0b5070edd99dd559d49f0fc9b
Mon Sep 17 00:00:00 2001
From
9f5842c37d2f63025a8c44ff82bdbab562d923ac
Mon Sep 17 00:00:00 2001
From: Thomas Guillem <thomas@gllm.fr>
From: Thomas Guillem <thomas@gllm.fr>
Date: Mon, 17 Jul 2017 17:03:24 +0200
Date: Mon, 17 Jul 2017 17:03:24 +0200
Subject: [PATCH 1
6/16
] Replace thread local with pthread TSD
Subject: [PATCH 1
4/14
] Replace thread local with pthread TSD
---
---
src/misc/interrupt.c |
63
++++++++++++++++++++++++++++++++++++++++++++++++++++
src/misc/interrupt.c |
59
++++++++++++++++++++++++++++++++++++++++++++++++++++
src/misc/variables.c |
23 ++
+++++++++++++++++
src/misc/variables.c |
19
+++++++++++++++++
2 files changed,
86
insertions(+)
2 files changed,
78
insertions(+)
diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c
diff --git a/src/misc/interrupt.c b/src/misc/interrupt.c
index 3fafaa4183..
fc7b84fd64
100644
index 3fafaa4183..
476d9cfba5
100644
--- a/src/misc/interrupt.c
--- a/src/misc/interrupt.c
+++ b/src/misc/interrupt.c
+++ b/src/misc/interrupt.c
@@ -43,13 +43,
30
@@
@@ -43,13 +43,
26
@@
#include "interrupt.h"
#include "interrupt.h"
#include "libvlc.h"
#include "libvlc.h"
+#ifdef __x86_64__
+#define I_CAN_HAZ_TSD
+#endif
+
+#ifdef I_CAN_HAZ_TSD
+#ifdef I_CAN_HAZ_TSD
static thread_local vlc_interrupt_t *vlc_interrupt_var;
static thread_local vlc_interrupt_t *vlc_interrupt_var;
+#else
+#else
...
@@ -43,7 +39,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -43,7 +39,7 @@ index 3fafaa4183..fc7b84fd64 100644
vlc_mutex_init(&ctx->lock);
vlc_mutex_init(&ctx->lock);
ctx->interrupted = false;
ctx->interrupted = false;
atomic_init(&ctx->killed, false);
atomic_init(&ctx->killed, false);
@@ -98,9 +11
5
,15 @@
void vlc_interrupt_raise(vlc_interrupt_t *ctx)
@@ -98,9 +11
1
,15 @@
void vlc_interrupt_raise(vlc_interrupt_t *ctx)
vlc_interrupt_t *vlc_interrupt_set(vlc_interrupt_t *newctx)
vlc_interrupt_t *vlc_interrupt_set(vlc_interrupt_t *newctx)
{
{
...
@@ -59,7 +55,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -59,7 +55,7 @@ index 3fafaa4183..fc7b84fd64 100644
return oldctx;
return oldctx;
}
}
@@ -115,7 +13
8
,11 @@
static void vlc_interrupt_prepare(vlc_interrupt_t *ctx,
@@ -115,7 +13
4
,11 @@
static void vlc_interrupt_prepare(vlc_interrupt_t *ctx,
void (*cb)(void *), void *data)
void (*cb)(void *), void *data)
{
{
assert(ctx != NULL);
assert(ctx != NULL);
...
@@ -71,7 +67,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -71,7 +67,7 @@ index 3fafaa4183..fc7b84fd64 100644
vlc_mutex_lock(&ctx->lock);
vlc_mutex_lock(&ctx->lock);
assert(ctx->callback == NULL);
assert(ctx->callback == NULL);
@@ -143,7 +1
70
,11 @@
static int vlc_interrupt_finish(vlc_interrupt_t *ctx)
@@ -143,7 +1
66
,11 @@
static int vlc_interrupt_finish(vlc_interrupt_t *ctx)
int ret = 0;
int ret = 0;
assert(ctx != NULL);
assert(ctx != NULL);
...
@@ -83,7 +79,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -83,7 +79,7 @@ index 3fafaa4183..fc7b84fd64 100644
/* Wait for pending callbacks to prevent access by other threads. */
/* Wait for pending callbacks to prevent access by other threads. */
vlc_mutex_lock(&ctx->lock);
vlc_mutex_lock(&ctx->lock);
@@ -159,14 +1
90
,22 @@
static int vlc_interrupt_finish(vlc_interrupt_t *ctx)
@@ -159,14 +1
86
,22 @@
static int vlc_interrupt_finish(vlc_interrupt_t *ctx)
void vlc_interrupt_register(void (*cb)(void *), void *opaque)
void vlc_interrupt_register(void (*cb)(void *), void *opaque)
{
{
...
@@ -106,7 +102,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -106,7 +102,7 @@ index 3fafaa4183..fc7b84fd64 100644
return (ctx != NULL) ? vlc_interrupt_finish(ctx) : 0;
return (ctx != NULL) ? vlc_interrupt_finish(ctx) : 0;
}
}
@@ -185,7 +22
4
,11 @@
void vlc_interrupt_kill(vlc_interrupt_t *ctx)
@@ -185,7 +22
0
,11 @@
void vlc_interrupt_kill(vlc_interrupt_t *ctx)
bool vlc_killed(void)
bool vlc_killed(void)
{
{
...
@@ -118,7 +114,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -118,7 +114,7 @@ index 3fafaa4183..fc7b84fd64 100644
return (ctx != NULL) && atomic_load(&ctx->killed);
return (ctx != NULL) && atomic_load(&ctx->killed);
}
}
@@ -197,7 +2
40
,11 @@
static void vlc_interrupt_sem(void *opaque)
@@ -197,7 +2
36
,11 @@
static void vlc_interrupt_sem(void *opaque)
int vlc_sem_wait_i11e(vlc_sem_t *sem)
int vlc_sem_wait_i11e(vlc_sem_t *sem)
{
{
...
@@ -130,7 +126,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -130,7 +126,7 @@ index 3fafaa4183..fc7b84fd64 100644
if (ctx == NULL)
if (ctx == NULL)
return vlc_sem_wait(sem), 0;
return vlc_sem_wait(sem), 0;
@@ -227,7 +27
4
,11 @@
static void vlc_mwait_i11e_cleanup(void *opaque)
@@ -227,7 +27
0
,11 @@
static void vlc_mwait_i11e_cleanup(void *opaque)
int vlc_mwait_i11e(mtime_t deadline)
int vlc_mwait_i11e(mtime_t deadline)
{
{
...
@@ -142,7 +138,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -142,7 +138,7 @@ index 3fafaa4183..fc7b84fd64 100644
if (ctx == NULL)
if (ctx == NULL)
return mwait(deadline), 0;
return mwait(deadline), 0;
@@ -262,7 +3
13
,11 @@
void vlc_interrupt_forward_start(vlc_interrupt_t *to, void *data[2])
@@ -262,7 +3
09
,11 @@
void vlc_interrupt_forward_start(vlc_interrupt_t *to, void *data[2])
{
{
data[0] = data[1] = NULL;
data[0] = data[1] = NULL;
...
@@ -154,7 +150,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -154,7 +150,7 @@ index 3fafaa4183..fc7b84fd64 100644
if (from == NULL)
if (from == NULL)
return;
return;
@@ -371,7 +42
6
,11 @@
static int vlc_poll_i11e_inner(struct pollfd *restrict fds, unsigned nfds,
@@ -371,7 +42
2
,11 @@
static int vlc_poll_i11e_inner(struct pollfd *restrict fds, unsigned nfds,
int vlc_poll_i11e(struct pollfd *fds, unsigned nfds, int timeout)
int vlc_poll_i11e(struct pollfd *fds, unsigned nfds, int timeout)
{
{
...
@@ -166,7 +162,7 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -166,7 +162,7 @@ index 3fafaa4183..fc7b84fd64 100644
if (ctx == NULL)
if (ctx == NULL)
return poll(fds, nfds, timeout);
return poll(fds, nfds, timeout);
@@ -568,7 +62
7
,11 @@
static void vlc_poll_i11e_cleanup(void *opaque)
@@ -568,7 +62
3
,11 @@
static void vlc_poll_i11e_cleanup(void *opaque)
int vlc_poll_i11e(struct pollfd *fds, unsigned nfds, int timeout)
int vlc_poll_i11e(struct pollfd *fds, unsigned nfds, int timeout)
{
{
...
@@ -179,17 +175,13 @@ index 3fafaa4183..fc7b84fd64 100644
...
@@ -179,17 +175,13 @@ index 3fafaa4183..fc7b84fd64 100644
return vlc_poll(fds, nfds, timeout);
return vlc_poll(fds, nfds, timeout);
diff --git a/src/misc/variables.c b/src/misc/variables.c
diff --git a/src/misc/variables.c b/src/misc/variables.c
index 87a9c27478..
10f142bbed
100644
index 87a9c27478..
5d3b8ebc1f
100644
--- a/src/misc/variables.c
--- a/src/misc/variables.c
+++ b/src/misc/variables.c
+++ b/src/misc/variables.c
@@ -1378,7 +1378,
21
@@
void DumpVariables(vlc_object_t *obj)
@@ -1378,7 +1378,
17
@@
void DumpVariables(vlc_object_t *obj)
vlc_mutex_unlock(&vlc_internals(obj)->var_lock);
vlc_mutex_unlock(&vlc_internals(obj)->var_lock);
}
}
+#ifdef __x86_64__
+#define I_CAN_HAZ_TSD
+#endif
+
+#ifdef I_CAN_HAZ_TSD
+#ifdef I_CAN_HAZ_TSD
static thread_local void *twalk_ctx;
static thread_local void *twalk_ctx;
+#else
+#else
...
@@ -204,7 +196,7 @@ index 87a9c27478..10f142bbed 100644
...
@@ -204,7 +196,7 @@ index 87a9c27478..10f142bbed 100644
static void TwalkGetNames(const void *data, const VISIT which, const int depth)
static void TwalkGetNames(const void *data, const VISIT which, const int depth)
{
{
@@ -1387,7 +1
401
,11 @@
static void TwalkGetNames(const void *data, const VISIT which, const int depth)
@@ -1387,7 +1
397
,11 @@
static void TwalkGetNames(const void *data, const VISIT which, const int depth)
(void) depth;
(void) depth;
const variable_t *var = *(const variable_t **)data;
const variable_t *var = *(const variable_t **)data;
...
@@ -216,7 +208,7 @@ index 87a9c27478..10f142bbed 100644
...
@@ -216,7 +208,7 @@ index 87a9c27478..10f142bbed 100644
char *dup = strdup(var->psz_name);
char *dup = strdup(var->psz_name);
if (dup != NULL)
if (dup != NULL)
ARRAY_APPEND(*names, dup);
ARRAY_APPEND(*names, dup);
@@ -1400,7 +141
8
,12 @@
char **var_GetAllNames(vlc_object_t *obj)
@@ -1400,7 +141
4
,12 @@
char **var_GetAllNames(vlc_object_t *obj)
DECL_ARRAY(char *) names;
DECL_ARRAY(char *) names;
ARRAY_INIT(names);
ARRAY_INIT(names);
...
@@ -230,5 +222,5 @@ index 87a9c27478..10f142bbed 100644
...
@@ -230,5 +222,5 @@ index 87a9c27478..10f142bbed 100644
twalk(priv->var_root, TwalkGetNames);
twalk(priv->var_root, TwalkGetNames);
vlc_mutex_unlock(&priv->var_lock);
vlc_mutex_unlock(&priv->var_lock);
--
--
2.1
1.0
2.1
4.1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment