Skip to content

Commit cdc044b

Browse files
committed
Version 2.1.5
1 parent de26956 commit cdc044b

File tree

3 files changed

+13
-10
lines changed

3 files changed

+13
-10
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,11 @@ The main differences with `v4l2loopback-dc` are that:
5656

5757
If you wish to use v4l2loopback-dc, first install these dependencies
5858
```
59-
linux-headers-`uname -r`
60-
gcc
61-
make
59+
Debian/ubuntu:
60+
sudo apt install build-essential linux-headers-$(uname -r)
61+
62+
Fedora:
63+
sudo dnf install kernel-devel
6264
```
6365

6466
then run `sudo ./install-video` to build the module and install it.

src/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
#ifndef _COMMON_H_
1010
#define _COMMON_H_
1111

12-
#define APP_VER_INT 214
13-
#define APP_VER_STR "2.1.4"
12+
#define APP_VER_INT 215
13+
#define APP_VER_STR "2.1.5"
1414

1515
#define MSG_ERROR(str) ShowError("Error",str)
1616
#define MSG_LASTERROR(str) ShowError(str,strerror(errno))

src/decoder_snd.c

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -269,26 +269,27 @@ snd_pcm_t *find_snd_device(void) {
269269
dbgprint("Trying to open audio device: %s\n", snd_device);
270270
err = snd_pcm_open(&handle, snd_device, SND_PCM_STREAM_PLAYBACK, 0);
271271
if (err < 0 || !handle) {
272-
errprint("snd_pcm_open failed: %s\n", snd_strerror(err));
272+
errprint("warn: snd_pcm_open(%s) failed: %s\n", snd_device, snd_strerror(err));
273273
continue;
274274
}
275275

276276
// got a handle
277277

278278
if (set_hwparams(handle, hwparams, SND_PCM_ACCESS_MMAP_INTERLEAVED) < 0) {
279-
errprint("setting audio hwparams failed\n");
279+
errprint("setting audio hwparams failed for %s\n", snd_device);
280280
snd_pcm_close(handle);
281281
continue;
282282
}
283283

284284
if (set_swparams(handle, swparams) < 0) {
285-
errprint("Setting audio swparams failed\n");
285+
errprint("setting audio swparams failed for %s\n", snd_device);
286286
snd_pcm_close(handle);
287-
goto OUT;
287+
continue;
288288
}
289289

290290
if (buffer_size != DROIDCAM_PCM_CHUNK_BYTES_2) {
291-
errprint("Unexpected audio device buffer size: %ld\n", buffer_size);
291+
errprint("Unexpected audio device buffer size: %ld expected %ld\n",
292+
buffer_size, DROIDCAM_PCM_CHUNK_BYTES_2);
292293
snd_pcm_close(handle);
293294
goto OUT;
294295
}

0 commit comments

Comments
 (0)