audio-session - >media-session

Also implement video in the media session
Small cleanups
Improve exclusive mode
This commit is contained in:
Wim Taymans 2018-05-14 13:07:01 +02:00
parent bed26040ef
commit e02b3181da
9 changed files with 91 additions and 49 deletions

View file

@ -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)

View file

@ -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;
}