Fixed HDS without valid audio track.
This commit is contained in:
parent
8848e28db2
commit
9e07da4d97
1 changed files with 4 additions and 1 deletions
|
@ -11,6 +11,7 @@ namespace Mist {
|
|||
|
||||
void OutHDS::getTracks(){
|
||||
/// \todo Why do we have only one audio track option?
|
||||
/// \todo We should really support all Flash-supported codecs in HDS. These lists are too short now.
|
||||
videoTracks.clear();
|
||||
audioTrack = 0;
|
||||
for (std::map<int,DTSC::Track>::iterator it = myMeta.tracks.begin(); it != myMeta.tracks.end(); it++){
|
||||
|
@ -219,7 +220,9 @@ namespace Mist {
|
|||
|
||||
selectedTracks.clear();
|
||||
selectedTracks.insert(tid);
|
||||
if (audioTrack){
|
||||
selectedTracks.insert(audioTrack);
|
||||
}
|
||||
seek(mstime);
|
||||
playUntil = mstime + mslen;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue