1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-24 15:52:25 +00:00

avoid hang when playing more than one file

git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15869 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
reimar 2005-06-30 13:25:08 +00:00
parent e63017700f
commit 6dad56fda6

View File

@ -231,6 +231,7 @@ static int init(int rate, int channels, int format, int flags) {
mp_msg(MSGT_AO, MSGL_FATAL, "[JACK] cannot open server\n");
goto err_out;
}
reset();
jack_set_process_callback(client, outputaudio, 0);
// list matching ports
@ -295,7 +296,7 @@ static void uninit(int immed) {
if (!immed)
usec_sleep(get_delay() * 1000 * 1000);
// HACK, make sure jack doesn't loop-output dirty buffers
paused = 1;
reset();
usec_sleep(100 * 1000);
jack_client_close(client);
free(buffer);