Bug 404315 - Opening or resuming a video will open Dragon Player in a very small window
Summary: Opening or resuming a video will open Dragon Player in a very small window
Status: RESOLVED FIXED
Alias: None
Product: dragonplayer
Classification: Applications
Component: general (show other bugs)
Version: 18.12
Platform: Neon Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-14 02:21 UTC by Neousr
Modified: 2022-11-26 05:14 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 23.04
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Neousr 2019-02-14 02:21:46 UTC
SUMMARY

Opening a video from Dolphin or from the play file menu after opening Dragon will open the video resize to a small size. Same applies to video resuming from the Play media playlist.

STEPS TO REPRODUCE

1. Open a video on dragon player from within it or from dolphin.

OBSERVED RESULT

The window resizes to a very small window even if is the first time ever launched even if before being closed Dragon had a different size windows given it by an user it will be changed and resized at the start of a new video.


EXPECTED RESULT

By opening a video the interface should maintain his current size/last size and only change by user manual resizing.


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: KDE Neon

KDE Plasma Version:  5.15.0
KDE Frameworks Version:  5.55.0
Qt Version:  5.12.0

ADDITIONAL INFORMATION

Forcing a window size though the especial application preferences menu will remove the problem but will prevent resizing the window unless full screen mode is activated.
Comment 1 Neousr 2019-03-24 21:02:53 UTC
It only happens on the vlc-backend this seems to be related to Bug 307364.
Comment 2 Harald Sitter 2019-03-26 11:53:49 UTC
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.
Comment 3 Neousr 2019-03-26 17:34:55 UTC
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.
Comment 4 Nate Graham 2022-11-26 05:14:25 UTC
Fixed in the 23.04 release!