X-Git-Url: http://research.m1stereo.tv/gitweb?a=blobdiff_plain;f=src%2Fmodules%2Fffmpeg%2Ffilter_ffmpeg_dub.c;h=0d678af208ea9720e96eca0499af70f085002eb5;hb=6336039a203c6496691784682f9ad56eb13abcc3;hp=652354bb47a6a7d48b4c7d42884d21202591c959;hpb=0cf7dff156fe3c541eb5d668e317cc73b008c7b0;p=melted diff --git a/src/modules/ffmpeg/filter_ffmpeg_dub.c b/src/modules/ffmpeg/filter_ffmpeg_dub.c index 652354b..0d678af 100644 --- a/src/modules/ffmpeg/filter_ffmpeg_dub.c +++ b/src/modules/ffmpeg/filter_ffmpeg_dub.c @@ -47,7 +47,7 @@ static int filter_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_format if ( !mlt_properties_get_int( producer_properties, "end_of_clip" ) ) { // Get the position - double position = mlt_properties_get_double( producer_properties, "dub_position" ); + mlt_position position = mlt_properties_get_position( producer_properties, "dub_position" ); // We need a frame from the producer mlt_frame producer_frame; @@ -56,7 +56,7 @@ static int filter_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_format mlt_properties_set_double( producer_properties, "fps", mlt_properties_get_double( frame_properties, "fps" ) ); // Seek to the position - mlt_producer_seek_frame( producer, ( int64_t )position ); + mlt_producer_seek( producer, position ); // Get the next frame producer->get_frame( producer, &producer_frame, 0 ); @@ -70,7 +70,7 @@ static int filter_get_audio( mlt_frame frame, int16_t **buffer, mlt_audio_format mlt_properties_set_data( frame_properties, "ffmpeg_dub_frame", producer_frame, 0, ( mlt_destructor )mlt_frame_close, NULL ); // Incrment the position - mlt_properties_set_double( producer_properties, "dub_position", position + 1 ); + mlt_properties_set_position( producer_properties, "dub_position", position + 1 ); } } @@ -135,7 +135,7 @@ mlt_filter filter_ffmpeg_dub_init( char *file ) mlt_properties_set_data( properties, "producer", producer, 0, ( mlt_destructor )mlt_producer_close, NULL ); // Initialise the audio frame position - mlt_properties_set_double( properties, "dub_position", 0 ); + mlt_properties_set_position( properties, "dub_position", 0 ); return this; }