Module Name: src
Committed By: nat
Date: Fri Jul 21 02:11:18 UTC 2023
Modified Files:
src/usr.sbin/bta2dpd/bta2dpd: sbc_encode.c
Log Message:
Reorder for readability.
No functional change intended.
XXX pullup-10.
To generate a diff of this commit:
cvs rdiff -u -r1.12 -r1.13 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c
diff -u src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.12 src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.13
--- src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c:1.12 Thu Jul 20 12:33:27 2023
+++ src/usr.sbin/bta2dpd/bta2dpd/sbc_encode.c Fri Jul 21 02:11:18 2023
@@ -1,4 +1,4 @@
-/* $NetBSD: sbc_encode.c,v 1.12 2023/07/20 12:33:27 nat Exp $ */
+/* $NetBSD: sbc_encode.c,v 1.13 2023/07/21 02:11:18 nat Exp $ */
/*-
* Copyright (c) 2015 - 2016 Nathanial Sloss <[email protected]>
@@ -952,8 +952,6 @@ stream(int in, int outfd, uint8_t mode,
memcpy(whole + offset, frameData, (size_t)next_pkt);
free(frameData);
- tries = 1;
-
/* Wait if necessary to avoid rapid playback. */
gettimeofday(&myTime, NULL);
timeNow = myTime.tv_sec * 1000000 + myTime.tv_usec;
@@ -967,6 +965,7 @@ stream(int in, int outfd, uint8_t mode,
}
prevTime = timeNow;
+ tries = 1;
send_again:
len = write(outfd, whole, totalSize);