Changeset f7b5fd704 in mythtv


Ignore:
Timestamp:
Feb 18, 2019, 7:51:10 PM (6 years ago)
Author:
Roland Ernst <rcrernst@…>
Branches:
devel/2020-player, devel/ffmpeg-resync, fixes/31, github-templates, master
Children:
d63430d0f9
Parents:
e7e2270d6
git-author:
Roland Ernst <rcrernst@…> (02/18/19 19:51:10)
git-committer:
Bill Meek <billmeek@…> (02/18/19 19:51:10)
Message:

Services API: Allow images/icons immediately after BE startup. Refs #13404

Register <QFileInfo> to QMetaType at backend startup.

Tested on master with:

curl --header Accept:Application/JSON --output /tmp/preview.out \

--silent localhost:6544/Content/GetPreviewImage?RecordedId=<validRID>

curl --header Accept:Application/JSON --output /tmp/icon.out \

--silent localhost:6544/Guide/GetChannelIcon?ChanId=<validChanID>

Also, without --header ... for XML responses.

Required because Services need this type already registered. Without this
fix expect:

JSON: {: }
XML: <?xml version="1.0" encoding="UTF-8"?><></>

Thanks Roland.

Signed-off-by: Bill Meek <billmeek@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • mythtv/libs/libmythservicecontracts/service.h

    re7e2270d6 rf7b5fd704  
    7272//////////////////////////////////////////////////////////////////////////////
    7373
    74 inline Service::Service(QObject *parent) : QObject(parent) {}
     74inline Service::Service(QObject *parent) : QObject(parent)
     75{
     76     qRegisterMetaType< QFileInfo >();
     77}
    7578
    7679//////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.