fixed CID 40892{2,3,5}

This commit is contained in:
Martin Pulec
2023-06-13 09:13:40 +02:00
parent eab5c08294
commit 10ddebf68e
3 changed files with 3 additions and 1 deletions

View File

@@ -277,6 +277,7 @@ static void * audio_cap_testcard_init(struct module *parent, const char *cfg)
s->chunk_size = atoi(item + strlen("frames="));
} else if (strncasecmp(item, "frequency=", strlen("frequency=")) == 0) {
frequency = atoi(item + strlen("frequency="));
assert(frequency != 0);
} else if(strstr(item, "crescendo") == item) {
pattern = CRESCENDO;
char *val = strchr(item, '=');

View File

@@ -109,7 +109,7 @@ class col
{
public:
template<class T>
col &operator<< (T val) {
col &operator<< (const T& val) {
oss << val;
return *this;
}

View File

@@ -1099,6 +1099,7 @@ vidcap_import_grab(void *state, struct audio_frame **audio)
}
if(s->queue_len == 0) {
pthread_mutex_unlock(&s->lock);
return NULL;
}