summaryrefslogtreecommitdiff
path: root/bin/capture+encode+serve
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2017-04-26 18:47:17 +0200
committerJonas Smedegaard <dr@jones.dk>2017-04-26 18:47:17 +0200
commit24f21d41f0ad8d9c6b762dd56a76b29328f65def (patch)
treea69d1dcb2c2c3da572ec3cb460a4ce4eac905572 /bin/capture+encode+serve
parent776ce9ce4557dd7de7614ec1840b8d602bc88d84 (diff)
Add mountpoint /main.
Diffstat (limited to 'bin/capture+encode+serve')
-rwxr-xr-xbin/capture+encode+serve11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/capture+encode+serve b/bin/capture+encode+serve
index b263c22..e3fce44 100755
--- a/bin/capture+encode+serve
+++ b/bin/capture+encode+serve
@@ -171,6 +171,17 @@ for my $i ( 0 .. $#ADEVICES ) {
);
push @mounts, $mount;
}
+if ( @ADEVICES and @VDEVICES ) {
+ my $mount = "/main";
+ $mounts->add_factory(
+ $mount,
+ factory(
+ mic( $ADEVICES[0], $#VDEVICES + 1 ),
+ cam( $VDEVICES[0], 0 )
+ )
+ );
+ push @mounts, $mount;
+}
# don't need the ref to the mapper anymore
undef $mounts;