libvlc: fix race on input_item_t.p_stats
commit1fffacd6ea5df99f8d22111b13dfcfd3bcd49bca
authorRémi Denis-Courmont <remi@remlab.net>
Mon, 11 Dec 2017 19:09:25 +0000 (11 21:09 +0200)
committerRémi Denis-Courmont <remi@remlab.net>
Mon, 11 Dec 2017 19:29:30 +0000 (11 21:29 +0200)
treebd1f0b9adbf29264665a5d807498912026f72bae
parent895d480b516f01482df7176ccee811c38d665230
libvlc: fix race on input_item_t.p_stats

p_stats is written with the input item lock (by the input thread).
Thus the input item lock is necessary to read and dereference p_stats.
lib/media.c