[vlmc-devel] MainWorkflow: Cosmetic.
Hugo Beauzée-Luyssen
git at videolan.org
Tue Sep 4 23:13:44 CEST 2012
vlmc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Tue Sep 4 22:47:04 2012 +0300| [cc58d69bb6ae95a014b0c130ee2b857622f2801b] | committer: Hugo Beauzée-Luyssen
MainWorkflow: Cosmetic.
> http://git.videolan.org/gitweb.cgi/vlmc.git/?a=commit;h=cc58d69bb6ae95a014b0c130ee2b857622f2801b
---
src/Workflow/MainWorkflow.cpp | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/Workflow/MainWorkflow.cpp b/src/Workflow/MainWorkflow.cpp
index 21b686c..4bd4de4 100644
--- a/src/Workflow/MainWorkflow.cpp
+++ b/src/Workflow/MainWorkflow.cpp
@@ -51,8 +51,7 @@ MainWorkflow::MainWorkflow( int trackCount ) :
m_currentFrame = new qint64[Workflow::NbTrackType];
for ( unsigned int i = 0; i < Workflow::NbTrackType; ++i )
{
- Workflow::TrackType trackType =
- (i == 0 ? Workflow::VideoTrack : Workflow::AudioTrack );
+ Workflow::TrackType trackType = static_cast<Workflow::TrackType>(i);
m_tracks[i] = new TrackHandler( trackCount, trackType );
connect( m_tracks[i], SIGNAL( tracksEndReached() ),
this, SLOT( tracksEndReached() ) );
More information about the Vlmc-devel
mailing list