Skip to content

Add subtitle stream support#263

Merged
brbeec merged 17 commits intodcarpente/masterfrom
brbeec/19123107
Sep 18, 2019
Merged

Add subtitle stream support#263
brbeec merged 17 commits intodcarpente/masterfrom
brbeec/19123107

Conversation

@brbeec
Copy link
Copy Markdown
Member

@brbeec brbeec commented Sep 17, 2019

This change adds support for SRT, SSA, PGS, and VobSub subtitle streams. A SwitchStreamsRequested event handler was implemented to allow enabling/disabling the subtitle stream during playback.

hr = audioSampleProvider->AllocateResources();
if (SUCCEEDED(hr))
{
audioSampleProvider->EnableStream();
Copy link
Copy Markdown
Member

@isuru-c-p isuru-c-p Sep 18, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

audioSampleProvider->EnableStream(); [](start = 6, length = 36)

Shouldn't "audioStreamSelected" be set to true for this case as well? #Closed

@isuru-c-p
Copy link
Copy Markdown
Member

isuru-c-p commented Sep 18, 2019

{

Need to initialize m_subtitleStreamIndex as well. #Closed


Refers to: FFmpegInterop/FFmpegReader.cpp:28 in dd5a2e6. [](commit_id = dd5a2e6, deletion_comment = False)

Copy link
Copy Markdown
Member

@isuru-c-p isuru-c-p left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@brbeec brbeec merged commit be93ca2 into dcarpente/master Sep 18, 2019
@brbeec brbeec deleted the brbeec/19123107 branch September 18, 2019 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants