X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fcore%2Ffilter_data_show.c;h=6782a8b1270d663fd11c8779e1621092ecbe4185;hb=f7de757c48d3634113f129a3c727656f0cd2ed79;hp=7c9ab3d606c0dbd9da87e364a81be7007b0a56ee;hpb=d33f444d4ef4c7bc4074d07a49eca0ab7d108394;p=melted diff --git a/src/modules/core/filter_data_show.c b/src/modules/core/filter_data_show.c index 7c9ab3d..6782a8b 100644 --- a/src/modules/core/filter_data_show.c +++ b/src/modules/core/filter_data_show.c @@ -50,9 +50,9 @@ static mlt_filter obtain_filter( mlt_filter filter, char *type ) // If none is specified, pick up the default for this normalisation if ( profile == NULL ) - sprintf( temp, "%s/feeds/%s/data_fx.properties", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ) ); + sprintf( temp, "%s/feeds/%s/data_fx.properties", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ) ); else if ( strchr( profile, '%' ) ) - sprintf( temp, "%s/feeds/%s/%s", mlt_factory_prefix( ), mlt_environment( "MLT_NORMALISATION" ), strchr( profile, '%' ) + 1 ); + sprintf( temp, "%s/feeds/%s/%s", mlt_environment( "MLT_DATA" ), mlt_environment( "MLT_NORMALISATION" ), strchr( profile, '%' ) + 1 ); else strcpy( temp, profile ); @@ -205,7 +205,7 @@ static int process_feed( mlt_properties feed, mlt_filter filter, mlt_frame frame { // special case: replace #timecode# with current frame timecode int pos = mlt_properties_get_int( feed, "position" ); - char *tc = frame_to_timecode( pos, mlt_profile_fps( NULL ) ); + char *tc = frame_to_timecode( pos, mlt_profile_fps( mlt_service_profile( MLT_FILTER_SERVICE( filter ) ) ) ); strcat( result, tc ); free( tc ); }