mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
Fixes (#1605)
* Correct misleading Error messages * Fix that Audio Capture is not shown when there is no screen nor video grabber * Fix - Audio Capture enabled after reboot automatically (#1581)
This commit is contained in:
parent
79b31e16e0
commit
5535b884bf
@ -218,7 +218,9 @@ $(document).ready(function () {
|
|||||||
loadContent(undefined,true);
|
loadContent(undefined,true);
|
||||||
|
|
||||||
//Hide capture menu entries, if no grabbers are available
|
//Hide capture menu entries, if no grabbers are available
|
||||||
if ((window.serverInfo.grabbers.screen.available.length === 0) && (window.serverInfo.grabbers.video.available.length === 0)) {
|
if ((window.serverInfo.grabbers.screen.available.length === 0) &&
|
||||||
|
(window.serverInfo.grabbers.video.available.length === 0) &&
|
||||||
|
(window.serverInfo.grabbers.audio.available.length === 0)) {
|
||||||
$("#MenuItemGrabber").attr('style', 'display:none')
|
$("#MenuItemGrabber").attr('style', 'display:none')
|
||||||
if ((jQuery.inArray("boblight", window.serverInfo.services) === -1)) {
|
if ((jQuery.inArray("boblight", window.serverInfo.services) === -1)) {
|
||||||
$("#MenuItemInstCapture").attr('style', 'display:none')
|
$("#MenuItemInstCapture").attr('style', 'display:none')
|
||||||
|
@ -97,7 +97,7 @@ void CaptureCont::setSystemCaptureEnable(bool enable)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
disconnect(GlobalSignals::getInstance(), &GlobalSignals::setSystemImage, this, 0);
|
disconnect(GlobalSignals::getInstance(), &GlobalSignals::setSystemImage, this, nullptr);
|
||||||
_hyperion->clear(_systemCaptPrio);
|
_hyperion->clear(_systemCaptPrio);
|
||||||
_systemInactiveTimer->stop();
|
_systemInactiveTimer->stop();
|
||||||
_systemCaptName = "";
|
_systemCaptName = "";
|
||||||
@ -120,7 +120,7 @@ void CaptureCont::setV4LCaptureEnable(bool enable)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
disconnect(GlobalSignals::getInstance(), &GlobalSignals::setV4lImage, this, 0);
|
disconnect(GlobalSignals::getInstance(), &GlobalSignals::setV4lImage, this, nullptr);
|
||||||
_hyperion->clear(_v4lCaptPrio);
|
_hyperion->clear(_v4lCaptPrio);
|
||||||
_v4lInactiveTimer->stop();
|
_v4lInactiveTimer->stop();
|
||||||
_v4lCaptName = "";
|
_v4lCaptName = "";
|
||||||
@ -143,7 +143,7 @@ void CaptureCont::setAudioCaptureEnable(bool enable)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
disconnect(GlobalSignals::getInstance(), &GlobalSignals::setAudioImage, this, 0);
|
disconnect(GlobalSignals::getInstance(), &GlobalSignals::setAudioImage, this, nullptr);
|
||||||
_hyperion->clear(_audioCaptPrio);
|
_hyperion->clear(_audioCaptPrio);
|
||||||
_audioInactiveTimer->stop();
|
_audioInactiveTimer->stop();
|
||||||
_audioCaptName = "";
|
_audioCaptName = "";
|
||||||
|
@ -290,7 +290,7 @@ void GrabberWrapper::handleSourceRequest(hyperion::Components component, int hyp
|
|||||||
else
|
else
|
||||||
GRABBER_AUDIO_CLIENTS.remove(hyperionInd);
|
GRABBER_AUDIO_CLIENTS.remove(hyperionInd);
|
||||||
|
|
||||||
if (GRABBER_AUDIO_CLIENTS.empty())
|
if (GRABBER_AUDIO_CLIENTS.empty() || !getAudioGrabberState())
|
||||||
stop();
|
stop();
|
||||||
else
|
else
|
||||||
start();
|
start();
|
||||||
|
@ -268,7 +268,7 @@ SuspendHandlerLinux::SuspendHandlerLinux()
|
|||||||
QDBusConnection systemBus = QDBusConnection::systemBus();
|
QDBusConnection systemBus = QDBusConnection::systemBus();
|
||||||
if (!systemBus.isConnected())
|
if (!systemBus.isConnected())
|
||||||
{
|
{
|
||||||
Error(Logger::getInstance("DAEMON"), "Suspend/resume handler - System bus is not connected");
|
Info(Logger::getInstance("DAEMON"), "The suspend/resume feature is not supported by your system configuration");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -288,7 +288,7 @@ SuspendHandlerLinux::SuspendHandlerLinux()
|
|||||||
QDBusConnection sessionBus = QDBusConnection::sessionBus();
|
QDBusConnection sessionBus = QDBusConnection::sessionBus();
|
||||||
if (!sessionBus.isConnected())
|
if (!sessionBus.isConnected())
|
||||||
{
|
{
|
||||||
Error(Logger::getInstance("DAEMON"), "Lock/unlock handler- Session bus is not connected");
|
Info(Logger::getInstance("DAEMON"), "The lock/unlock feature is not supported by your system configuration");
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user