mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 10:21:04 +02:00
driver/audiodec: metadata fix
Origin commit data
------------------
Branch: ni/coolstream
Commit: 5a7b190790
Author: martii <m4rtii@gmx.de>
Date: 2013-10-20 (Sun, 20 Oct 2013)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -42,6 +42,7 @@
|
||||
#include <neutrino.h>
|
||||
#include <driver/audioplay.h>
|
||||
#include <driver/netfile.h>
|
||||
#include <eitd/edvbstring.h> // UTF8
|
||||
|
||||
void CAudioPlayer::stop()
|
||||
{
|
||||
@@ -169,24 +170,30 @@ void CAudioPlayer::sc_callback(void *arg)
|
||||
{
|
||||
bool changed=false;
|
||||
CSTATE *stat = (CSTATE*)arg;
|
||||
if(m_Audiofile.MetaData.artist != stat->artist)
|
||||
|
||||
const std::string artist = convertLatin1UTF8(stat->artist);
|
||||
const std::string title = convertLatin1UTF8(stat->title);
|
||||
const std::string station = convertLatin1UTF8(stat->station);
|
||||
const std::string genre = convertLatin1UTF8(stat->genre);
|
||||
|
||||
if(m_Audiofile.MetaData.artist != artist)
|
||||
{
|
||||
m_Audiofile.MetaData.artist = stat->artist;
|
||||
m_Audiofile.MetaData.artist = artist;
|
||||
changed=true;
|
||||
}
|
||||
if (m_Audiofile.MetaData.title != stat->title)
|
||||
if (m_Audiofile.MetaData.title != title)
|
||||
{
|
||||
m_Audiofile.MetaData.title = stat->title;
|
||||
m_Audiofile.MetaData.title = title;
|
||||
changed=true;
|
||||
}
|
||||
if (m_Audiofile.MetaData.sc_station != stat->station)
|
||||
if (m_Audiofile.MetaData.sc_station != station)
|
||||
{
|
||||
m_Audiofile.MetaData.sc_station = stat->station;
|
||||
m_Audiofile.MetaData.sc_station = station;
|
||||
changed=true;
|
||||
}
|
||||
if (m_Audiofile.MetaData.genre != stat->genre)
|
||||
if (m_Audiofile.MetaData.genre != genre)
|
||||
{
|
||||
m_Audiofile.MetaData.genre = stat->genre;
|
||||
m_Audiofile.MetaData.genre = genre;
|
||||
changed=true;
|
||||
}
|
||||
if(changed)
|
||||
|
Reference in New Issue
Block a user