projects
/
melted
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
MltProducer.{h,cpp}, swig/mltpp.i: add method Producer::get_frame.
[melted]
/
mlt++
/
src
/
MltProducer.cpp
diff --git
a/mlt++/src/MltProducer.cpp
b/mlt++/src/MltProducer.cpp
index
39a93db
..
e98e513
100644
(file)
--- a/
mlt++/src/MltProducer.cpp
+++ b/
mlt++/src/MltProducer.cpp
@@
-190,3
+190,12
@@
void Producer::optimise( )
{
mlt_producer_optimise( get_producer( ) );
}
+
+Frame* Producer::get_frame( int index )
+{
+ mlt_frame f = NULL;
+ int result = get_producer()->get_frame( get_producer(), &f, index );
+ if ( f )
+ return new Frame( f );
+ return NULL;
+}