summaryrefslogtreecommitdiffstats
path: root/stream/stream_file.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2018-03-09 11:53:48 +0100
committerKevin Mitchell <kevmitch@gmail.com>2018-03-15 00:00:04 -0700
commit2edf00fb94ba18dc2d476e0354036043ce4f714d (patch)
treecda0ebaa4bb7fcc2df6264cf6a4e3e2a6be04d74 /stream/stream_file.c
parent03791fae163591951b2b8208fe6b0b6c95d8ae77 (diff)
downloadmpv-2edf00fb94ba18dc2d476e0354036043ce4f714d.tar.bz2
mpv-2edf00fb94ba18dc2d476e0354036043ce4f714d.tar.xz
client API: send MPV_EVENT_SHUTDOWN only once
Before this change, mpv_wait_event() could inconsistently return multiple MPV_EVENT_SHUTDOWN events to a single mpv_handle, up to the point of spamming the event queue under certain circumstances. Change this and just send it exactly once to each mpv_handle. Some client API users might have weird requirements about destroying their state asynchronously (and not reacting immediately to the SHUTDOWN event). This change will help a bit to make this less weird and surprising.
Diffstat (limited to 'stream/stream_file.c')
0 files changed, 0 insertions, 0 deletions