Skip to content

Commit

Permalink
Update seek request AFTER decoding a frame
Browse files Browse the repository at this point in the history
  • Loading branch information
nschlia committed Feb 1, 2023
1 parent ac4598c commit 653eab6
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/transcode.cc
Expand Up @@ -873,6 +873,13 @@ static int transcoder_thread(void *arg)
cache_entry->update_access(false);
}

averror = transcoder.process_single_fr(status);
if (status < 0)
{
errno = EIO;
throw (static_cast<int>(errno));
}

if (transcoder.is_frameset())
{
uint32_t frame_no = cache_entry->m_seek_to_no;
Expand Down Expand Up @@ -902,13 +909,6 @@ static int transcoder_thread(void *arg)
}
}

averror = transcoder.process_single_fr(status);
if (status < 0)
{
errno = EIO;
throw (static_cast<int>(errno));
}

if (status == 1 && ((averror = transcode_finish(cache_entry, transcoder)) < 0))
{
errno = EIO;
Expand Down

1 comment on commit 653eab6

@nschlia
Copy link
Owner Author

@nschlia nschlia commented on 653eab6 Feb 2, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fix for #119

Please sign in to comment.