]> git.sesse.net Git - kdenlive/blobdiff - src/clipmanager.cpp
Merge branch 'audioAlign'
[kdenlive] / src / clipmanager.cpp
index af4522a6cdeb76c9dfc48d460195e920ee85a7ea..608087f4470c1c2d11186786051f4921324c4af3 100644 (file)
@@ -305,7 +305,7 @@ void ClipManager::slotGetAudioThumbs()
             producer.seek(z);
             mlt_frame = producer.get_frame();
             if (mlt_frame && mlt_frame->is_valid()) {
-                int samples = mlt_sample_calculator(framesPerSecond, frequency, mlt_frame_get_position(mlt_frame->get_frame()));
+                int samples = mlt_sample_calculator(framesPerSecond, frequency, mlt_frame->get_position());
                 qint16* pcm = static_cast<qint16*>(mlt_frame->get_audio(audioFormat, frequency, channels, samples));
                 for (int c = 0; c < channels; c++) {
                     QByteArray audioArray;