Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
VLMC
Commits
c2c0d0f6
Commit
c2c0d0f6
authored
Nov 05, 2009
by
Hugo Beauzee-Luyssen
Browse files
Solved position problem when starting to playback a splitted clip.
parent
74dd5c54
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/Workflow/ClipWorkflow.cpp
View file @
c2c0d0f6
...
...
@@ -88,6 +88,7 @@ void ClipWorkflow::initialize( bool preloading /*= false*/ )
void
ClipWorkflow
::
pauseAfterPlaybackStarted
()
{
adjustBegin
();
disconnect
(
m_mediaPlayer
,
SIGNAL
(
playing
()
),
this
,
SLOT
(
pauseAfterPlaybackStarted
()
)
);
connect
(
m_mediaPlayer
,
SIGNAL
(
paused
()
),
this
,
SLOT
(
initializedMediaPlayer
()
),
Qt
::
DirectConnection
);
...
...
@@ -96,6 +97,7 @@ void ClipWorkflow::pauseAfterPlaybackStarted()
void
ClipWorkflow
::
loadingComplete
()
{
adjustBegin
();
disconnect
(
m_mediaPlayer
,
SIGNAL
(
playing
()
),
this
,
SLOT
(
loadingComplete
()
)
);
setState
(
Ready
);
}
...
...
@@ -106,6 +108,11 @@ void ClipWorkflow::initializedMediaPlayer()
setState
(
Ready
);
}
void
ClipWorkflow
::
adjustBegin
()
{
m_mediaPlayer
->
setTime
(
m_clip
->
getBegin
()
/
m_clip
->
getParent
()
->
getFps
()
*
1000
);
}
bool
ClipWorkflow
::
isReady
()
const
{
QReadLocker
lock
(
m_stateLock
);
...
...
src/Workflow/ClipWorkflow.h
View file @
c2c0d0f6
...
...
@@ -166,6 +166,7 @@ class ClipWorkflow : public QObject
private:
void
setState
(
State
state
);
void
checkSynchronisation
(
State
newState
);
void
adjustBegin
();
private:
Clip
*
m_clip
;
...
...
Write
Preview
Supports
Markdown
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