Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[nemo-qtmultimedia-plugins] make sure orientation set before init() i…
…s applied

User may set the VideoOutput's orientation before it initialise its
backend. To make sure we take that into account, we copy the orientation
from the parent to m_orientation in init() function.
  • Loading branch information
peat-psuwit committed Oct 27, 2019
1 parent 3f8f24b commit 679790d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/videotexturebackend/videotexturebackend.cpp
Expand Up @@ -648,6 +648,8 @@ bool NemoVideoTextureBackend::init(QMediaService *service)
m_service = service;
m_control->setElement(m_sink);

m_orientation = q->orientation();

connect(this, SIGNAL(nativeSizeChanged()), q, SLOT(_q_updateNativeSize()));
connect(q, SIGNAL(orientationChanged()), this, SLOT(orientationChanged()));
connect(q, SIGNAL(sourceChanged()), this, SLOT(sourceChanged()));
Expand Down

0 comments on commit 679790d

Please sign in to comment.