+static void get_localfiledate_str( mlt_filter filter, mlt_frame frame, char* text )
+{
+ mlt_producer producer = mlt_producer_cut_parent( mlt_frame_get_original_producer( frame ) );
+ mlt_properties producer_properties = MLT_PRODUCER_PROPERTIES( producer );
+ char* filename = mlt_properties_get( producer_properties, "resource" );
+ struct stat file_info;
+
+ if( !stat( filename, &file_info ) )
+ {
+ struct tm* time_info = localtime( &(file_info.st_mtime) );
+ char date[11] = "";
+ strftime( date, 11, "%Y/%m/%d", time_info );
+ strncat( text, date, MAX_TEXT_LEN - strlen( text ) - 1);
+ }
+}
+
+static void get_resource_str( mlt_filter filter, mlt_frame frame, char* text )
+{
+ mlt_producer producer = mlt_producer_cut_parent( mlt_frame_get_original_producer( frame ) );
+ mlt_properties producer_properties = MLT_PRODUCER_PROPERTIES( producer );
+ strncat( text, mlt_properties_get( producer_properties, "resource" ), MAX_TEXT_LEN - strlen( text ) - 1 );
+}