Hi Dan,
Is it okay if I add get_position to Mlt::Frame? Also, is the patch
format (I created it with git format-patch HEAD^ --stdout > my.patch)
okay?
Simon
From 7532974ac0d32a10b68e3583ac2548c8d2cc11bb Mon Sep 17 00:00:00 2001
From: "Simon A. Eugster" <[email protected]>
Date: Sun, 12 Feb 2012 16:01:46 +0100
Subject: [PATCH] Add get_position to Mlt::Frame
---
src/mlt++/MltFrame.cpp | 5 +++++
src/mlt++/MltFrame.h | 1 +
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/src/mlt++/MltFrame.cpp b/src/mlt++/MltFrame.cpp
index 30c30fd..07fb6a8 100644
--- a/src/mlt++/MltFrame.cpp
+++ b/src/mlt++/MltFrame.cpp
@@ -95,6 +95,11 @@ mlt_properties Frame::get_unique_properties( Service &service )
return mlt_frame_unique_properties( get_frame(), service.get_service() );
}
+int64_t Frame::get_position( )
+{
+ return mlt_frame_get_position( get_frame() );
+}
+
int Frame::set_image( uint8_t *image, int size, mlt_destructor destroy )
{
return mlt_frame_set_image( get_frame(), image, size, destroy );
diff --git a/src/mlt++/MltFrame.h b/src/mlt++/MltFrame.h
index 273d459..5942829 100644
--- a/src/mlt++/MltFrame.h
+++ b/src/mlt++/MltFrame.h
@@ -47,6 +47,7 @@ namespace Mlt
void *get_audio( mlt_audio_format &format, int &frequency, int &channels, int &samples );
unsigned char *get_waveform( int w, int h );
Producer *get_original_producer( );
+ int64_t get_position( );
mlt_properties get_unique_properties( Service &service );
int set_image( uint8_t *image, int size, mlt_destructor destroy );
int set_alpha( uint8_t *alpha, int size, mlt_destructor destroy );
--
1.7.7.2
------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Mlt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mlt-devel