Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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...
commit 9c3f956990a55c962207bbeb0306d31ee61c52ad 1 parent 420b326
@cpinkham cpinkham authored
Showing with 7 additions and 4 deletions.
  1. +7 −4 mythtv/libs/libmythtv/HLS/httplivestream.cpp
View
11 mythtv/libs/libmythtv/HLS/httplivestream.cpp
@@ -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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.