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

[EDL][Players] Cleanup FIXMEs #25346

Merged
merged 9 commits into from
Jun 22, 2024
Merged

[EDL][Players] Cleanup FIXMEs #25346

merged 9 commits into from
Jun 22, 2024

Conversation

enen92
Copy link
Member

@enen92 enen92 commented Jun 19, 2024

Description

This provides a few assorted improvements to the EDL interface (mostly leftovers):

  • Remove passing of const values
  • Remove default parameters
  • Remove using random bool variables instead of enum classes
  • Remove some hungarian notation

I don't want it to grow bigger than it's already so please consider other stuff out of the scope.

@enen92 enen92 added Type: Improvement non-breaking change which improves existing functionality Component: Players For changed player parts within "./xbmc/cores" v22 Piers labels Jun 19, 2024
@enen92 enen92 added this to the "P" 22.0 Alpha 1 milestone Jun 19, 2024
@enen92 enen92 requested a review from ksooo June 19, 2024 11:25
Copy link
Contributor

@howie-f howie-f left a comment

Choose a reason for hiding this comment

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

nice work, i would only consider making the enum classes type bool

xbmc/cores/EdlEdit.h Outdated Show resolved Hide resolved
xbmc/cores/IPlayer.h Outdated Show resolved Hide resolved
xbmc/cores/VideoPlayer/Edl.h Outdated Show resolved Hide resolved
Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

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

Nice!

xbmc/cores/Direction.h Outdated Show resolved Hide resolved
@@ -882,37 +884,37 @@ EDL::Action CEdl::GetLastEditActionType() const
return m_lastEditActionType;
}

bool CEdl::GetNextSceneMarker(bool bPlus, const int iClock, int *iSceneMarker)
bool CEdl::GetNextSceneMarker(Direction direction, int clock, int* sceneMarker)
Copy link
Member

Choose a reason for hiding this comment

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

Would it be possible to replace the int pointer with a reference?

Copy link
Member Author

@enen92 enen92 Jun 22, 2024

Choose a reason for hiding this comment

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

I was not really interested in doing more in this PR but done in b872735

Copy link
Member

@ksooo ksooo left a comment

Choose a reason for hiding this comment

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

lgtm

@enen92 enen92 merged commit c3e1d12 into xbmc:master Jun 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Component: Players For changed player parts within "./xbmc/cores" Type: Improvement non-breaking change which improves existing functionality v22 Piers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants