projects
/
melted
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Run time type identification
[melted]
/
mlt++
/
src
/
MltTractor.cpp
diff --git
a/mlt++/src/MltTractor.cpp
b/mlt++/src/MltTractor.cpp
index
bb6a449
..
8187a28
100644
(file)
--- a/
mlt++/src/MltTractor.cpp
+++ b/
mlt++/src/MltTractor.cpp
@@
-28,6
+28,16
@@
Tractor::Tractor( ) :
{
}
+Tractor::Tractor( Service &tractor ) :
+ instance( NULL )
+{
+ if ( tractor.type( ) == tractor_type )
+ {
+ instance = ( mlt_tractor )tractor.get_service( );
+ inc_ref( );
+ }
+}
+
Tractor::Tractor( mlt_tractor tractor ) :
instance( tractor )
{