diff options
author | Yclept Nemo <pscjtwjdjtAhnbjm/dpn> | 2018-06-22 23:02:07 -0400 |
---|---|---|
committer | Jan Ekström <jeebjp@gmail.com> | 2018-07-29 12:59:03 +0300 |
commit | 021bea159215347e7f3aaae6b87bcd83a3313cf2 (patch) | |
tree | 6c99dc8a3471a401b7c74868993126f6c9774aff /sub | |
parent | 0d134dc010df2c98323d5e5480fb28af2897c8bb (diff) | |
download | mpv-021bea159215347e7f3aaae6b87bcd83a3313cf2.tar.bz2 mpv-021bea159215347e7f3aaae6b87bcd83a3313cf2.tar.xz |
stream_smb: locking to bypass libsmbclient issues
Thread-unsafe libsmbclient is likely to crash when used simultaneously
across threads. For example, by:
mpv "smb://...mkv" --sub-file "smb://...srt"
Work around this by locking all calls to this library under a single
global mutex. This is a temporary solution. When the libsmbclient bug
[1] is fixed, switch to the code from branch [2] which uses a new api to
create per-thread smb contexts. Fixes [3].
[1] https://bugzilla.samba.org/show_bug.cgi?id=11413
[2] https://github.com/orbisvicis/mpv/tree/smbclient_threaded_api
[3] https://github.com/mpv-player/mpv/issues/5936
(cherry picked from commit 112b3fa92266ab36dbffa2abf66034203f66b2ce)
Diffstat (limited to 'sub')
0 files changed, 0 insertions, 0 deletions