[mythtv-commits] Ticket #11339: HLS Stream Progress > 100%
MythTV
noreply at mythtv.org
Wed Jan 9 22:28:07 UTC 2013
#11339: HLS Stream Progress > 100%
-----------------------------------------+------------------------
Reporter: jheizer@… | Owner: cpinkham
Type: Bug Report - General | Status: new
Priority: minor | Milestone: unknown
Component: MythTV - HTTP Streaming | Version: 0.26-fixes
Severity: medium | Keywords:
Ticket locked: 0 |
-----------------------------------------+------------------------
If you start a HLS on a recording that is in progress the percentage
reported grows greater than 100%.
Example:
{{{
<StartSegment>1</StartSegment>
<CurrentSegment>241</CurrentSegment>
<SegmentCount>241</SegmentCount>
<PercentComplete>14156</PercentComplete>
}}}
It does report 100% once complete.
<stichnot> jheizer: this is because Transcode::TranscodeFile() calls
GetTotalFrameCount() outside the loop, so for percentage calculations it's
using the frame count that was correct when the transcoding started.
<stichnot> jheizer: if you're willing to test, look for the line "int
percentage = curFrameNum * 100 / total_frame_count;" and add a new
statement right before it: "total_frame_count =
GetPlayer()->GetCurrentFrameCount();"
}}}
--
Ticket URL: <http://code.mythtv.org/trac/ticket/11339>
MythTV <http://code.mythtv.org/trac>
MythTV Media Center
More information about the mythtv-commits
mailing list