Skip to content

Commit

Permalink
Set the HLS status message when transcoding starts.
Browse files Browse the repository at this point in the history
  • Loading branch information
cpinkham committed Jul 20, 2012
1 parent 6810255 commit 28fd68a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mythtv/programs/mythtranscode/transcode.cpp
Expand Up @@ -914,6 +914,7 @@ int Transcode::TranscodeFile(const QString &inputname,
{
hls = new HTTPLiveStream(hlsStreamID);
hls->UpdateStatus(kHLSStatusStarting);
hls->UpdateStatusMessage("Transcoding Starting");
cmdWidth = hls->GetWidth();
cmdHeight = hls->GetHeight();
cmdBitrate = hls->GetBitrate();
Expand Down Expand Up @@ -1144,6 +1145,7 @@ int Transcode::TranscodeFile(const QString &inputname,
segmentSize, audioOnlyBitrate);

hls->UpdateStatus(kHLSStatusStarting);
hls->UpdateStatusMessage("Transcoding Starting");
hls->UpdateSizeInfo(newWidth, newHeight, video_width, video_height);

if ((hlsStreamID != -1) &&
Expand Down Expand Up @@ -1646,7 +1648,10 @@ int Transcode::TranscodeFile(const QString &inputname,
VideoFrame *lastDecode = NULL;

if (hls)
{
hls->UpdateStatus(kHLSStatusRunning);
hls->UpdateStatusMessage("Transcoding");
}

while ((!stopSignalled) &&
(lastDecode = frameQueue->GetFrame(did_ff, is_key)))
Expand Down

0 comments on commit 28fd68a

Please sign in to comment.