Skip to content

Commit

Permalink
Fixed no audio output if audio sink set while playback in progress.
Browse files Browse the repository at this point in the history
  • Loading branch information
gmpreussner committed Oct 25, 2016
1 parent c9b92ec commit cd3c5c5
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Source/VlcMedia/Private/Player/VlcMediaOutput.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,11 @@ int FVlcMediaOutput::StaticAudioSetupCallback(void** Opaque, ANSICHAR* Format, u
return -1;
}

if (FVlc::MediaPlayerGetState(Output->Player) == ELibvlcState::Playing)
{
AudioSink->ResumeAudioSink();
}

return 0;
}

Expand Down

0 comments on commit cd3c5c5

Please sign in to comment.