Skip to content

Commit

Permalink
Add livestream conflict support
Browse files Browse the repository at this point in the history
  • Loading branch information
Glenn-1990 committed Sep 15, 2015
1 parent 5adb645 commit 86deb7e
Show file tree
Hide file tree
Showing 8 changed files with 365 additions and 70 deletions.
1 change: 1 addition & 0 deletions pvr.hts/addon.xml.in
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
<c-pluff version="0.1"/>
<import addon="xbmc.pvr" version="4.0.0"/>
<import addon="xbmc.codec" version="1.0.1"/>
<import addon="kodi.guilib" version="5.8.0"/>
</requires>
<extension
point="xbmc.pvrclient"
Expand Down
54 changes: 54 additions & 0 deletions pvr.hts/resources/language/resource.language.en_gb/strings.po
Original file line number Diff line number Diff line change
Expand Up @@ -163,3 +163,57 @@ msgstr ""
msgctxt "#30402"
msgid "Unused subscription close delay"
msgstr ""

#empty strings from id 30403 to 30449

#. Subscription states representation

msgctxt "#30450"
msgid "No free adapter available"
msgstr ""

msgctxt "#30451"
msgid "Livestream aborted, adapter stolen by other subscription"
msgstr ""

msgctxt "#30452"
msgid "Scrambled channel"
msgstr ""

msgctxt "#30453"
msgid "No signal"
msgstr ""

msgctxt "#30454"
msgid "Subscription error"
msgstr ""

msgctxt "#30455"
msgid "Failed to hijack an adapter"
msgstr ""

msgctxt "#30456"
msgid "User limit reached"
msgstr ""

#. Subscription conflict dialog

msgctxt "#30457"
msgid "Do you want to increase the priority to hijack an adapter?"
msgstr ""

msgctxt "#30458"
msgid "WARNING: this can abort an active recording or livestream"
msgstr ""

msgctxt "#30459"
msgid "Ignore"
msgstr ""

msgctxt "#30460"
msgid "Increase priority"
msgstr ""

msgctxt "#30461"
msgid "Subscription conflict"
msgstr ""
6 changes: 3 additions & 3 deletions src/HTSPDemuxer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ void CHTSPDemuxer::Abort0 ( void )
}


bool CHTSPDemuxer::Open ( uint32_t channelId, enum eSubscriptionWeight weight )
bool CHTSPDemuxer::Open ( uint32_t channelId, uint32_t weight )
{
CLockObject lock(m_conn.Mutex());
tvhdebug("demux open");
Expand Down Expand Up @@ -193,9 +193,9 @@ void CHTSPDemuxer::Speed ( int speed )
m_subscription.SendSpeed((int32_t)speed);
}

void CHTSPDemuxer::Weight ( enum eSubscriptionWeight weight )
void CHTSPDemuxer::Weight ( uint32_t weight )
{
m_subscription.SendWeight((uint32_t)weight);
m_subscription.SendWeight(weight);
}

PVR_ERROR CHTSPDemuxer::CurrentStreams ( PVR_STREAM_PROPERTIES *streams )
Expand Down
Loading

0 comments on commit 86deb7e

Please sign in to comment.