diff --git a/packager/hls/base/simple_hls_notifier.cc b/packager/hls/base/simple_hls_notifier.cc index 635d4d17c0..ebc29e13f0 100644 --- a/packager/hls/base/simple_hls_notifier.cc +++ b/packager/hls/base/simple_hls_notifier.cc @@ -283,6 +283,11 @@ bool SimpleHlsNotifier::NotifyNewStream(const MediaInfo& media_info, GenerateSegmentUrl(media_info_copy.init_segment_name(), prefix_, 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)) { LOG(ERROR) << "Failed to set media info for playlist " << playlist_name; return false;