X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fkthumb.cpp;h=f5963c1a6db991e3ab13bae6e48587208f00f3eb;hb=c69ac32e6d351f7ceb968fd000eb67ea5a377db3;hp=70864a3e133d70c4548e0d54f7a5d511e28d3508;hpb=d0a7184b48382bbffa1fdef032932a31d5bc6217;p=kdenlive diff --git a/src/kthumb.cpp b/src/kthumb.cpp index 70864a3e..f5963c1a 100644 --- a/src/kthumb.cpp +++ b/src/kthumb.cpp @@ -96,7 +96,7 @@ void MyThread::run() { int m_samples = mlt_sample_calculator(m_framesPerSecond, m_frequency, mlt_frame_get_position(mlt_frame->get_frame())); mlt_audio_format m_audioFormat = mlt_audio_pcm; - int16_t* m_pcm = mlt_frame->get_audio(m_audioFormat, m_frequency, m_channels, m_samples); + qint16* m_pcm = mlt_frame->get_audio(m_audioFormat, m_frequency, m_channels, m_samples); for (int c = 0;c < m_channels;c++) { QByteArray m_array; @@ -144,6 +144,10 @@ void KThumb::setProducer(Mlt::Producer *producer) { m_dar = producer->profile()->dar(); } +void KThumb::clearProducer() { + m_producer = NULL; +} + bool KThumb::hasProducer() const { return m_producer != NULL; }