| Summary: | Opening or resuming a video will open Dragon Player in a very small window | ||
|---|---|---|---|
| Product: | [Applications] dragonplayer | Reporter: | Neousr <neousr> |
| Component: | general | Assignee: | Harald Sitter <sitter> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | myriam, nate |
| Priority: | NOR | ||
| Version First Reported In: | 18.12 | ||
| Target Milestone: | --- | ||
| Platform: | Neon | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 23.04 | |
| Sentry Crash Report: | |||
|
Description
Neousr
2019-02-14 02:21:46 UTC
It only happens on the vlc-backend this seems to be related to Bug 307364. Kind of and also kind of not. The ignore aspect behavior of the other bug would be if you set Dragon to fit-to-window or whatever the option is called. That would actually scale the image to the window even when it compromises the aspect (e.g. a very thin but tall window would have thin and tall people in a video). If libvlc had that feature your problem would not exist, but only if the relevant aspect is set. By default it'd exhibit its current behavior regardless. The problem at hand, I think, has more to do with dragon always bending to the will of the phonon backend. It is true that the size hint ultimately comes out of libvlc and that is why it overrides the user configured size, Dragon could however simply ignore it and retain its size. IOW: refuse to change its window size any way other than the user changing it. And that sounds like the reasonable thing to do, raising the question why it doesn't. So, perhaps there is actually something more nefarious going on. This doesn't seem entirely reproducible either. Sometimes reopening the same video will reset the size, sometimes it doesn't. Consistently it only seems to happen when opening video1 -> resize -> close -> wait -> open video2 of different size. Needs some investigation as to how libvlc arrives at the specific size and how that propagates up the stack to dragon and why that only sometimes seems to go wrong. For the record: the tiny size is actually the minimal (and default) UI size if I am not mistaken. Thanks for the insight. As you said the window size aspect ratio option seems to be not related as i thought initially. As for the resize on Dragon yeah i agree it shouldn't happen even if phonon could be the culprit. After a bit more of testing. While using the Vlc backend it always default to the minimum size as you stated no mater what i do. But on the other hand the Gstreamer has a particular behavior if you open a second video as stated before it will resize to the minimum again. If instead of opening a new video Dragon player is closed, reopened and a video on the playlist is selected it will maintain the last size on the main window as expected. As i can see for whatever reason opening a new video by the play/media option while the video is still playing will reset the current window to the minimum size. Even stopping the current video and selecting another will not resize the player all the time to the minimum but it will resize to its last remembered state so could this be a problem on the saved settings per video or the default minimum size when opening a new video. Fixed in the 23.04 release! |