mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-31 22:25:38 -04:00
audio-session - >media-session
Also implement video in the media session Small cleanups Improve exclusive mode
This commit is contained in:
parent
bed26040ef
commit
e02b3181da
9 changed files with 91 additions and 49 deletions
|
|
@ -33,7 +33,7 @@
|
|||
#define CHECK_PORT(this,d,p) ((d) == SPA_DIRECTION_INPUT && (p) == 0)
|
||||
|
||||
static const char default_device[] = "hw:0";
|
||||
static const uint32_t default_min_latency = 64;
|
||||
static const uint32_t default_min_latency = 16;
|
||||
static const uint32_t default_max_latency = 1024;
|
||||
|
||||
static void reset_props(struct props *props)
|
||||
|
|
|
|||
|
|
@ -87,6 +87,8 @@ static int spa_v4l2_open(struct impl *this)
|
|||
((port->cap.capabilities & V4L2_CAP_DEVICE_CAPS) &&
|
||||
(port->cap.device_caps & V4L2_CAP_VIDEO_CAPTURE) == 0)) {
|
||||
spa_log_error(port->log, "v4l2: %s is no video capture device", props->device);
|
||||
close(port->fd);
|
||||
port->fd = -1;
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue