[vlmc-devel] commit: MainWorkflow: removed useless lock. ( Hugo Beauzée-Luyssen )
git at videolan.org
git at videolan.org
Fri May 14 18:51:22 CEST 2010
vlmc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Wed May 12 16:46:40 2010 +0200| [782fc8a3a97a86d8e50ef8d1381e40db21aa5d05] | committer: Hugo Beauzée-Luyssen
MainWorkflow: removed useless lock.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=782fc8a3a97a86d8e50ef8d1381e40db21aa5d05
---
src/Workflow/MainWorkflow.cpp | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index 2d00122..9e0f3cf 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -181,9 +181,11 @@ MainWorkflow::getClipPosition( const QUuid& uuid, unsigned int trackId,
void
MainWorkflow::stop()
{
- QMutexLocker lock( m_renderStartedMutex );
- QWriteLocker lock2( m_currentFrameLock );
-
+ /*
+ Assume the method can be called without locking anything, since the workflow won't
+ be queried by the renderer (When stopping the renderer, it stops its media player
+ before stopping the mainworkflow.
+ */
m_renderStarted = false;
for (unsigned int i = 0; i < MainWorkflow::NbTrackType; ++i)
{
More information about the Vlmc-devel
mailing list