Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
HTTPLiveStream::GetLiveStreamInfo fixups.
Don't give the caller the URLs or source dimensions if they
are not valid yet because transcoding has not started.
  • Loading branch information
cpinkham committed Jun 14, 2013
1 parent 420b326 commit 9c3f956
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions mythtv/libs/libmythtv/HLS/httplivestream.cpp
Expand Up @@ -947,17 +947,20 @@ DTC::LiveStreamInfo *HTTPLiveStream::GetLiveStreamInfo(
info->setPercentComplete((int)m_percentComplete);
info->setCreated(m_created);
info->setLastModified(m_lastModified);
info->setRelativeURL(m_relativeURL);
info->setFullURL(m_fullURL);
info->setStatusStr(StatusToString(m_status));
info->setStatusInt((int)m_status);
info->setStatusMessage(m_statusMessage);
info->setSourceFile(m_sourceFile);
info->setSourceHost(m_sourceHost);
info->setSourceWidth(m_sourceWidth);
info->setSourceHeight(m_sourceHeight);
info->setAudioOnlyBitrate((int)m_audioOnlyBitrate);

if (m_width && m_height) {
info->setRelativeURL(m_relativeURL);
info->setFullURL(m_fullURL);
info->setSourceWidth(m_sourceWidth);
info->setSourceHeight(m_sourceHeight);
}

return info;
}

Expand Down

0 comments on commit 9c3f956

Please sign in to comment.