Skip to content

Commit 5e898a1

Browse files
committed
Fix HLS AddVideoLiveStream with files in subdirectories.
The current code would only work for files in the base of a Storage Group. This allows usage for files in subdirectories as well. Thanks to George Nassas on the -uses mailing list for the bug report and testing the patch.
1 parent f834940 commit 5e898a1

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mythtv/programs/mythbackend/services/content.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1033,9 +1033,7 @@ DTC::LiveStreamInfo *Content::AddVideoLiveStream( int nId,
10331033
return NULL;
10341034
}
10351035

1036-
QFileInfo fInfo( sFileName );
1037-
1038-
return AddLiveStream( "Videos", fInfo.fileName(),
1036+
return AddLiveStream( "Videos", metadata->GetFilename(),
10391037
metadata->GetHost(), nMaxSegments, nWidth,
10401038
nHeight, nBitrate, nAudioBitrate, nSampleRate );
10411039
}

0 commit comments

Comments
 (0)