implemented translating without restarting #514
This commit is contained in:
File diff suppressed because it is too large
Load Diff
+4
-3
@@ -544,14 +544,15 @@ private:
|
||||
*
|
||||
* @param f
|
||||
*
|
||||
* The AVFrame to retrieve. This function allocates an AVFrame so you shouldn't do so beforehand. You'll also need to
|
||||
* free it later with av_frame_free() (though ClipQueue will do this automatically if the frame is added to it).
|
||||
* A pointer to an AVFrame object. It does not need to be allocated, as this function allocates an AVFrame itself.
|
||||
* You'll also need to free it later with av_frame_free() (though ClipQueue will do this automatically if the frame is
|
||||
* added to it).
|
||||
*
|
||||
* @return
|
||||
*
|
||||
* FFmpeg error code (>= 0 on success, a negative error code on failure)
|
||||
*/
|
||||
int RetrieveFrameAndProcess(AVFrame *f);
|
||||
int RetrieveFrameAndProcess(AVFrame **f);
|
||||
|
||||
/**
|
||||
* @brief Internal video caching function
|
||||
|
||||
@@ -313,7 +313,7 @@ GLuint compose_sequence(ComposeSequenceParams ¶ms) {
|
||||
if (c->media() != nullptr && c->media()->get_type() == MEDIA_TYPE_FOOTAGE) {
|
||||
|
||||
// retrieve video frame from cache and store it in c->texture
|
||||
c->Cache(qMax(playhead, c->timeline_in()), false, false, params.nests, params.playback_speed);
|
||||
c->Cache(qMax(playhead, c->timeline_in()), false, params.nests, params.playback_speed);
|
||||
if (!c->Retrieve()) {
|
||||
params.texture_failed = true;
|
||||
} else {
|
||||
@@ -626,7 +626,6 @@ GLuint compose_sequence(ComposeSequenceParams ¶ms) {
|
||||
c->cache_lock.unlock();
|
||||
|
||||
c->Cache(playhead,
|
||||
false,
|
||||
(params.viewer != nullptr && !params.viewer->playing),
|
||||
params.nests,
|
||||
params.playback_speed);
|
||||
|
||||
Reference in New Issue
Block a user