Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
6444276d
Commit
6444276d
authored
Mar 02, 2016
by
Craig Watson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix video resizing at end of playback on Windows
parent
f00d50d6
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
UBGraphicsMediaItem.cpp
src/domain/UBGraphicsMediaItem.cpp
+8
-2
No files found.
src/domain/UBGraphicsMediaItem.cpp
View file @
6444276d
...
@@ -506,9 +506,15 @@ void UBGraphicsVideoItem::videoSizeChanged(QSizeF newSize)
...
@@ -506,9 +506,15 @@ void UBGraphicsVideoItem::videoSizeChanged(QSizeF newSize)
* the information is available.
* the information is available.
*/
*/
// Don't resize the video item when playback has finished
// Don't resize the video item when playback has finished
if
(
mMediaObject
->
mediaStatus
()
!=
QMediaPlayer
::
EndOfMedia
)
bool
shouldResize
=
(
mMediaObject
->
mediaStatus
()
!=
QMediaPlayer
::
EndOfMedia
);
#ifdef Q_OS_WIN
// Windows is a little confused about when a video ends
shouldResize
=
(
mMediaObject
->
mediaStatus
()
!=
QMediaPlayer
::
BufferedMedia
);
#endif
if
(
shouldResize
)
this
->
setSize
(
newSize
.
width
(),
newSize
.
height
());
this
->
setSize
(
newSize
.
width
(),
newSize
.
height
());
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment