mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
lcd4l: detect radiotext (/tmp/lcd/radiotext)
Origin commit data
------------------
Commit: 0fb41ee0fd
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-12-01 (Fri, 01 Dec 2017)
Origin message was:
------------------
- lcd4l: detect radiotext (/tmp/lcd/radiotext)
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
|
||||
#include <driver/record.h>
|
||||
#include <driver/audioplay.h>
|
||||
#include <driver/radiotext.h>
|
||||
#include <zapit/capmt.h>
|
||||
#include <zapit/zapit.h>
|
||||
#include <gui/movieplayer.h>
|
||||
@@ -74,6 +75,7 @@ extern cVideo *videoDecoder;
|
||||
#define RESOLUTION LCD_DATADIR "resolution"
|
||||
#define ASPECTRATIO LCD_DATADIR "aspectratio"
|
||||
#define VIDEOTEXT LCD_DATADIR "videotext"
|
||||
#define RADIOTEXT LCD_DATADIR "radiotext"
|
||||
#define DOLBYDIGITAL LCD_DATADIR "dolbydigital"
|
||||
#define TUNER LCD_DATADIR "tuner"
|
||||
#define VOLUME LCD_DATADIR "volume"
|
||||
@@ -201,6 +203,7 @@ void CLCD4l::Init()
|
||||
m_Resolution = "n/a";
|
||||
m_AspectRatio = "n/a";
|
||||
m_Videotext = -1;
|
||||
m_Radiotext = -1;
|
||||
m_DolbyDigital = "n/a";
|
||||
m_Tuner = -1;
|
||||
m_Volume = -1;
|
||||
@@ -381,6 +384,18 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
int Radiotext = 0;
|
||||
if (m_Mode == NeutrinoModes::mode_radio && g_settings.radiotext_enable && g_Radiotext)
|
||||
Radiotext = g_Radiotext->haveRadiotext();
|
||||
|
||||
if (m_Radiotext != Radiotext)
|
||||
{
|
||||
WriteFile(RADIOTEXT, Radiotext ? "yes" : "no");
|
||||
m_Radiotext = Radiotext;
|
||||
}
|
||||
|
||||
/* ----------------------------------------------------------------- */
|
||||
|
||||
std::string DolbyDigital;
|
||||
if ((g_RemoteControl->current_PIDs.PIDs.selected_apid < g_RemoteControl->current_PIDs.APIDs.size()) &&
|
||||
(g_RemoteControl->current_PIDs.APIDs[g_RemoteControl->current_PIDs.PIDs.selected_apid].is_ac3))
|
||||
|
@@ -76,6 +76,7 @@ class CLCD4l
|
||||
std::string m_Resolution;
|
||||
std::string m_AspectRatio;
|
||||
int m_Videotext;
|
||||
int m_Radiotext;
|
||||
std::string m_DolbyDigital;
|
||||
int m_Tuner;
|
||||
int m_Volume;
|
||||
|
Reference in New Issue
Block a user