Mercurial > mplayer.hg
changeset 15868:8bb0701496ec
avoid hang when playing more than one file
author | reimar |
---|---|
date | Thu, 30 Jun 2005 13:25:08 +0000 |
parents | dc8bda27cbe1 |
children | 1093105c639c |
files | libao2/ao_jack.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/libao2/ao_jack.c Thu Jun 30 11:33:43 2005 +0000 +++ b/libao2/ao_jack.c Thu Jun 30 13:25:08 2005 +0000 @@ -231,6 +231,7 @@ 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 @@ 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);