diff src/twjit_out.c @ 12:323957bebd53

twjit: smarter counting of underruns
author Mychaela Falconia <falcon@freecalypso.org>
date Sat, 06 Jul 2024 02:47:21 +0000
parents 4f82b9c07ddb
children
line wrap: on
line diff
--- a/src/twjit_out.c	Sat Jul 06 01:57:52 2024 +0000
+++ b/src/twjit_out.c	Sat Jul 06 02:47:21 2024 +0000
@@ -91,7 +91,6 @@
 	case TWJIT_STATE_FLOWING:
 		if (read_sb_is_empty(twjit)) {
 			twjit->state = TWJIT_STATE_EMPTY;
-			twjit->stats.underruns++;
 			return NULL;
 		}
 		read_sb_thinning(twjit);
@@ -106,7 +105,7 @@
 		}
 		if (read_sb_is_empty(twjit)) {
 			twjit->state = TWJIT_STATE_HUNT;
-			twjit->stats.underruns++;
+			twjit->stats.ho_underruns++;
 			return NULL;
 		}
 		read_sb_thinning(twjit);