summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
authorYclept Nemo <pscjtwjdjtAhnbjm/dpn>2018-06-22 23:02:07 -0400
committerJan Ekström <jeebjp@gmail.com>2018-07-29 12:54:56 +0300
commit112b3fa92266ab36dbffa2abf66034203f66b2ce (patch)
tree1f7ff73c9d9fdf13f9940aa598ab3cf2d21aab48 /stream/stream_file.c
parent2d785f3ea39d6779a6ac44d85d7cdc0acf891f43 (diff)
downloadmpv-112b3fa92266ab36dbffa2abf66034203f66b2ce.tar.bz2
mpv-112b3fa92266ab36dbffa2abf66034203f66b2ce.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
Diffstat (limited to 'stream/stream_file.c')
0 files changed, 0 insertions, 0 deletions