mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-07-27 06:08:01 +02:00
2019-01-10 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdairplay(1) and rdvairplayd(1) that caused spurious service information to by generated by the PAD subsystem when updating events in a null log. * Fixed a bug in rdairplay(1) and rdvairplayd(1) that threw a segfault when playing an event in a null log.
This commit is contained in:
parent
df90d567ba
commit
949f9141ab
@ -18353,3 +18353,9 @@
|
|||||||
2019-01-09 Fred Gleason <fredg@paravelsystems.com>
|
2019-01-09 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Fixed a regression that caused invalid values for PyPAD UID/GID
|
* Fixed a regression that caused invalid values for PyPAD UID/GID
|
||||||
to be loaded.
|
to be loaded.
|
||||||
|
2019-01-10 Fred Gleason <fredg@paravelsystems.com>
|
||||||
|
* Fixed a bug in rdairplay(1) and rdvairplayd(1) that caused
|
||||||
|
spurious service information to by generated by the PAD subsystem
|
||||||
|
when updating events in a null log.
|
||||||
|
* Fixed a bug in rdairplay(1) and rdvairplayd(1) that threw a
|
||||||
|
segfault when playing an event in a null log.
|
||||||
|
@ -1380,6 +1380,9 @@ void RDLogPlay::resync()
|
|||||||
|
|
||||||
bool RDLogPlay::isRefreshable() const
|
bool RDLogPlay::isRefreshable() const
|
||||||
{
|
{
|
||||||
|
if(play_log==NULL) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
return (play_log->exists())&&
|
return (play_log->exists())&&
|
||||||
(play_log->linkDatetime()==play_link_datetime)&&
|
(play_log->linkDatetime()==play_link_datetime)&&
|
||||||
(play_log->modifiedDatetime()>play_modified_datetime);
|
(play_log->modifiedDatetime()>play_modified_datetime);
|
||||||
@ -2961,6 +2964,10 @@ void RDLogPlay::SendNowNext()
|
|||||||
//
|
//
|
||||||
// Service
|
// Service
|
||||||
//
|
//
|
||||||
|
if(svcname.isEmpty()) {
|
||||||
|
play_pad_socket->write(RDJsonNullField("service",8).toUtf8());
|
||||||
|
}
|
||||||
|
else {
|
||||||
RDSvc *svc=new RDSvc(svcname,rda->station(),rda->config(),this);
|
RDSvc *svc=new RDSvc(svcname,rda->station(),rda->config(),this);
|
||||||
play_pad_socket->write(QString(" \"service\": {\r\n").toUtf8());
|
play_pad_socket->write(QString(" \"service\": {\r\n").toUtf8());
|
||||||
play_pad_socket->write(RDJsonField("name",svcname,12).toUtf8());
|
play_pad_socket->write(RDJsonField("name",svcname,12).toUtf8());
|
||||||
@ -2970,6 +2977,7 @@ void RDLogPlay::SendNowNext()
|
|||||||
write(RDJsonField("programCode",svc->programCode(),12,true).toUtf8());
|
write(RDJsonField("programCode",svc->programCode(),12,true).toUtf8());
|
||||||
play_pad_socket->write(QString(" },\r\n").toUtf8());
|
play_pad_socket->write(QString(" },\r\n").toUtf8());
|
||||||
delete svc;
|
delete svc;
|
||||||
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
// Log
|
// Log
|
||||||
|
Loading…
x
Reference in New Issue
Block a user