-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
vo: add --video-recenter #15320
base: master
Are you sure you want to change the base?
vo: add --video-recenter #15320
Conversation
video/out/vo.c
Outdated
if (!vo->params || !vo->opts->recenter) | ||
return; | ||
|
||
struct MPContext *mpctx = (struct MPContext *)vo->extra.wakeup_ctx; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
VO shouldn't access mpctx. It's for main player thread only.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can se signal the property notifications?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It shouldn't
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can se signal the property notifications?
These options are part of the VO sub option so they can be updated with config cache. window-maximized
etc are updated in this way in VO implementations.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, done.
d2662c3
to
62dd0a5
Compare
This resets --video-align-x and --video-align-y to 0 when the video becomes smaller than the OSD in the respective direction, e.g. by zooming out. Unlike doing this by observing osd-dimensions in a script, this is done before rerendering, so you don't see the image being rendered uncentered for an instant after zooming out, before being rerendered centered. Defaults to yes.
62dd0a5
to
ad98eb5
Compare
Download the artifacts for this pull request: |
This resets
--video-align-x
and--video-align-y
to 0 when the video becomes smaller than the OSD in the respective direction, e.g. by zooming out.Unlike doing this by observing osd-dimensions in a script, this is done before rerendering, so you don't see the image being rendered not centered for an instant after zooming out before being rerendered centered.
Defaults to yes.