Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added navigation controls for EDL (commercials) in PVR playback #10064

Merged
merged 1 commit into from Jul 6, 2016

Conversation

thardie
Copy link
Contributor

@thardie thardie commented Jul 3, 2016

Added functionality so that when playing from a PVR if there is an EDL, NEXT will go to the end of the next commercial block, and PREV will go to the beginning of the previous commercial block. If no EDL is present, old behavior is preserved.

@akva2
Copy link
Contributor

akva2 commented Jul 3, 2016

No real review but you will have to deal with it anyway. Indent is 2 spaces and braces go on separate lines.

@FernetMenta
Copy link
Contributor

why did you limit it for pvr only?

@thardie
Copy link
Contributor Author

thardie commented Jul 3, 2016

@akva2 The second commit fixes the indenting and braces - Did I miss something?
@FernetMenta I haven't seen EDLs for any other kind of videos, so can't test it, and didn't want to break old behavior. Is it safe to remove the PVR restriction?

@@ -4355,6 +4355,21 @@ bool CVideoPlayer::OnAction(const CAction &action)
case ACTION_NEXT_ITEM:
case ACTION_CHANNEL_UP:
{
if (m_pInputStream->IsStreamType(DVDSTREAM_TYPE_PVRMANAGER))

This comment was marked as spam.

@thardie
Copy link
Contributor Author

thardie commented Jul 3, 2016

@FernetMenta Removed the restriction as requested.

@@ -840,6 +840,50 @@ bool CEdl::InCut(const int iSeek, Cut *pCut) const
return false;
}

bool CEdl::GetNearestCut(bool bPlus, const int iSeek, Cut *pCut) const
{
if (bPlus) {

This comment was marked as spam.

@FernetMenta
Copy link
Contributor

thanks, apart from the minors (see comments) I am ok with this.

@FernetMenta FernetMenta added Type: Feature non-breaking change which adds functionality v17 Krypton Component: Video labels Jul 4, 2016
@FernetMenta FernetMenta added this to the Krypton 17.0-alpha3 milestone Jul 4, 2016
@FernetMenta FernetMenta self-assigned this Jul 4, 2016
@FernetMenta
Copy link
Contributor

@thardie could you please squash the 4 commits into a single one. then we are good to go

@thardie
Copy link
Contributor Author

thardie commented Jul 5, 2016

@FernetMenta Done

@FernetMenta
Copy link
Contributor

there is a "merge remote tracking" commit in this branch. always rebase on upstream, never merge upstream

@thardie
Copy link
Contributor Author

thardie commented Jul 5, 2016

Oops, sorry. Will fix it this evening (approx 8 hours from now)

@FernetMenta
Copy link
Contributor

thanks!

@thardie thardie force-pushed the master branch 2 times, most recently from 53e0eb8 to 8577295 Compare July 6, 2016 04:47
(commercials) to go to the end of the next commercial block, or
prev to the beginning of the previous commercial block.
@thardie
Copy link
Contributor Author

thardie commented Jul 6, 2016

@FernetMenta Should be good now.

@FernetMenta
Copy link
Contributor

jenkins build this please

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Video Type: Feature non-breaking change which adds functionality v17 Krypton
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants