Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 200466
Collapse All | Expand All

(-)/var/tmp/portage/media-sound/timidity++-2.13.2-r6/work/TiMidity++-2.13.2/interface/alsaseq_c.c (-5 / +9 lines)
Lines 501-506 Link Here
501
501
502
static void doit(struct seq_context *ctxp)
502
static void doit(struct seq_context *ctxp)
503
{
503
{
504
	fd_set rfds;
505
	struct timeval timeout;
504
	for (;;) {
506
	for (;;) {
505
		while (snd_seq_event_input_pending(ctxp->handle, 1)) {
507
		while (snd_seq_event_input_pending(ctxp->handle, 1)) {
506
			if (do_sequencer(ctxp))
508
			if (do_sequencer(ctxp))
Lines 528-542 Link Here
528
			play_event(&ev);
530
			play_event(&ev);
529
			aq_fill_nonblocking();
531
			aq_fill_nonblocking();
530
		}
532
		}
531
		if (! ctxp->active || ! IS_STREAM_TRACE) {
533
		
532
			fd_set rfds;
534
		FD_ZERO(&rfds);
533
			struct timeval timeout;
535
		FD_SET(ctxp->fd, &rfds);
534
			FD_ZERO(&rfds);
536
		if (ctxp->active) { 
535
			FD_SET(ctxp->fd, &rfds);
536
			timeout.tv_sec = 0;
537
			timeout.tv_sec = 0;
537
			timeout.tv_usec = 10000; /* 10ms */
538
			timeout.tv_usec = 10000; /* 10ms */
538
			if (select(ctxp->fd + 1, &rfds, NULL, NULL, &timeout) < 0)
539
			if (select(ctxp->fd + 1, &rfds, NULL, NULL, &timeout) < 0)
539
				goto __done;
540
				goto __done;
541
		} else {
542
			if (select(ctxp->fd + 1, &rfds, NULL, NULL, NULL) < 0)
543
				goto __done; 
540
		}
544
		}
541
	}
545
	}
542
546

Return to bug 200466