mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 23:56:29 +01:00
Make explicit an assert
This commit is contained in:
parent
7c705b0954
commit
16b31a3f6c
1 changed files with 3 additions and 0 deletions
|
@ -37,6 +37,7 @@
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <sys/asoundlib.h>
|
#include <sys/asoundlib.h>
|
||||||
|
#include <assert.h>
|
||||||
#include "aconfig.h"
|
#include "aconfig.h"
|
||||||
#include "formats.h"
|
#include "formats.h"
|
||||||
#include "version.h"
|
#include "version.h"
|
||||||
|
@ -1173,6 +1174,8 @@ void playback_go(int fd, int loaded, u_long count, int rtype, char *name)
|
||||||
format_change = 1;
|
format_change = 1;
|
||||||
set_format();
|
set_format();
|
||||||
|
|
||||||
|
assert(loaded < buffer_size);
|
||||||
|
|
||||||
while (count) {
|
while (count) {
|
||||||
l = loaded;
|
l = loaded;
|
||||||
loaded = 0;
|
loaded = 0;
|
||||||
|
|
Loading…
Reference in a new issue