mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-07 23:23:50 +01:00
fix streaming trailers over HLS
This commit is contained in:
parent
740a10a4e3
commit
3c2ec758be
1 changed files with 9 additions and 6 deletions
|
|
@ -206,13 +206,16 @@ namespace MediaBrowser.Api.Playback.Hls
|
|||
var framerate = state.VideoRequest.Framerate ?? 0;
|
||||
|
||||
// We have to supply a framerate for hls, so if it's null, account for that here
|
||||
if (framerate.Equals(0))
|
||||
if (state.VideoStream != null)
|
||||
{
|
||||
framerate = state.VideoStream.AverageFrameRate ?? 0;
|
||||
}
|
||||
if (framerate.Equals(0))
|
||||
{
|
||||
framerate = state.VideoStream.RealFrameRate ?? 0;
|
||||
if (framerate.Equals(0))
|
||||
{
|
||||
framerate = state.VideoStream.AverageFrameRate ?? 0;
|
||||
}
|
||||
if (framerate.Equals(0))
|
||||
{
|
||||
framerate = state.VideoStream.RealFrameRate ?? 0;
|
||||
}
|
||||
}
|
||||
if (framerate.Equals(0))
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue