[HLS] Fix single segment ULR isn't respecting folder location
Fixes #253 Change-Id: I61de1b28807ff8be9a881edd3adaa36612713dd8
This commit is contained in:
parent
0861452932
commit
c87c4c2327
|
@ -283,6 +283,11 @@ bool SimpleHlsNotifier::NotifyNewStream(const MediaInfo& media_info,
|
||||||
GenerateSegmentUrl(media_info_copy.init_segment_name(), prefix_,
|
GenerateSegmentUrl(media_info_copy.init_segment_name(), prefix_,
|
||||||
output_dir_, media_playlist->file_name()));
|
output_dir_, media_playlist->file_name()));
|
||||||
}
|
}
|
||||||
|
if (media_info_copy.has_media_file_name()) {
|
||||||
|
media_info_copy.set_media_file_name(
|
||||||
|
GenerateSegmentUrl(media_info_copy.media_file_name(), prefix_,
|
||||||
|
output_dir_, media_playlist->file_name()));
|
||||||
|
}
|
||||||
if (!media_playlist->SetMediaInfo(media_info_copy)) {
|
if (!media_playlist->SetMediaInfo(media_info_copy)) {
|
||||||
LOG(ERROR) << "Failed to set media info for playlist " << playlist_name;
|
LOG(ERROR) << "Failed to set media info for playlist " << playlist_name;
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue