Fixed: stream to DLNA device

Without this change "stream to DLNA" creates an empty MediaPath leading to broken ffmpeg commands.
This commit is contained in:
Juergen Kellerer 2021-12-19 23:08:17 +01:00
parent 1bb87b5ca0
commit 7e9197e694
No known key found for this signature in database
GPG Key ID: 505B87299E28CCA9

View File

@ -472,10 +472,10 @@ namespace TVHeadEnd
}
}
public Task<List<MediaSourceInfo>> GetChannelStreamMediaSources(string channelId, CancellationToken cancellationToken)
public async Task<List<MediaSourceInfo>> GetChannelStreamMediaSources(string channelId, CancellationToken cancellationToken)
{
throw new NotImplementedException();
var source = await GetChannelStream(channelId, string.Empty, cancellationToken);
return new List<MediaSourceInfo>() { source };
}
public async Task<SeriesTimerInfo> GetNewTimerDefaultsAsync(CancellationToken cancellationToken, ProgramInfo program = null)
@ -630,9 +630,10 @@ namespace TVHeadEnd
}
}
public Task<List<MediaSourceInfo>> GetRecordingStreamMediaSources(string recordingId, CancellationToken cancellationToken)
public async Task<List<MediaSourceInfo>> GetRecordingStreamMediaSources(string recordingId, CancellationToken cancellationToken)
{
throw new NotImplementedException();
var source = await GetRecordingStream(recordingId, string.Empty, cancellationToken);
return new List<MediaSourceInfo>() { source };
}
public async Task<IEnumerable<SeriesTimerInfo>> GetSeriesTimersAsync(CancellationToken cancellationToken)