Skip to content

Commit

Permalink
Merge branch 'dev' of https://github.com/datarhei/restreamer-ui into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jstabenow committed Oct 16, 2023
2 parents 964a7cd + 5dd710f commit a7d2ac4
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/utils/restreamer.js
Original file line number Diff line number Diff line change
Expand Up @@ -617,7 +617,7 @@ class Restreamer {
// Split out a Raspberry Pi camera and create a dedicated source
if (device.id === 'video4linux2') {
for (let d of device.devices) {
if (d.extra.indexOf('bcm2835-v4l2') !== -1) {
if (d.extra.match(/bcm2835[-_]v4l2/) !== null) {
if (!('raspicam' in skills.sources)) {
skills.sources['raspicam'] = [];
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Edit/Sources/Raspicam.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const initSettings = (initialSettings) => {

const settings = {
device: 'none',
format: 'h264',
format: 'yuv420p',
framerate: '25',
size: '1920x1080',
...initialSettings,
Expand Down
2 changes: 1 addition & 1 deletion src/views/Edit/Wizard/Sources/Raspicam.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ function initSettings(initialSettings, knownDevices) {
}

function initDevices(initialDevices) {
const devices = initialDevices.filter((device) => device.media === 'video' && device.extra.indexOf('bcm2835-v4l2') !== -1);
const devices = initialDevices.filter((device) => device.media === 'video' && device.extra.match(/bcm2835[-_]v4l2/) !== null);

return devices;
}
Expand Down
2 changes: 1 addition & 1 deletion src/views/Edit/Wizard/Sources/V4L.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function initSettings(initialSettings, knownDevices) {
}

function initDevices(initialDevices) {
const devices = initialDevices.filter((device) => device.media === 'video' && device.extra.indexOf('bcm2835-v4l2') === -1);
const devices = initialDevices.filter((device) => device.media === 'video' && device.extra.match(/bcm2835[-_]v4l2/) === null);

return devices;
}
Expand Down

0 comments on commit a7d2ac4

Please sign in to comment.