┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels
diff options
context:
space:
mode:
authorAndrey Bondrov <[email protected]>2014-10-24 08:21:37 +0200
committerEmmanuel Pescosta <[email protected]>2014-10-24 08:26:40 +0200
commit3f28c704236e8a909bb47bcd2695c0e0a9d74c23 (patch)
treec0a9c0c5e63f37ba7e2ddc3e7921818f0f975294 /src/panels
parent9d6f50ac5096282841739c2feedf3aee3671927d (diff)
Fix the information panel video player in Dolphin.
Patch from ROSA Linux. BUG: 337107 BUG: 337033 BUG: 334924 CCBUG: 339882 REVIEW: 120745 FIXED-IN: 4.14.3
Diffstat (limited to 'src/panels')
-rw-r--r--src/panels/information/phononwidget.cpp16
1 files changed, 7 insertions, 9 deletions
diff --git a/src/panels/information/phononwidget.cpp b/src/panels/information/phononwidget.cpp
index a36ada180..3d9909239 100644
--- a/src/panels/information/phononwidget.cpp
+++ b/src/panels/information/phononwidget.cpp
@@ -184,6 +184,13 @@ void PhononWidget::play()
m_seekSlider->setMediaObject(m_media);
}
+ if (!m_videoPlayer) {
+ m_videoPlayer = new EmbeddedVideoPlayer(this);
+ m_topLayout->insertWidget(0, m_videoPlayer);
+ Phonon::createPath(m_media, m_videoPlayer);
+ applyVideoSize();
+ }
+
if (!m_audioOutput) {
m_audioOutput = new Phonon::AudioOutput(Phonon::MusicCategory, this);
Phonon::createPath(m_media, m_audioOutput);
@@ -217,15 +224,6 @@ void PhononWidget::slotHasVideoChanged(bool hasVideo)
emit hasVideoChanged(hasVideo);
if (hasVideo) {
- if (!m_videoPlayer) {
- // Replay the media to apply path changes
- m_media->stop();
- m_videoPlayer = new EmbeddedVideoPlayer(this);
- m_topLayout->insertWidget(0, m_videoPlayer);
- Phonon::createPath(m_media, m_videoPlayer);
- m_media->play();
- }
- applyVideoSize();
m_videoPlayer->show();
}
}