Skip to content

Commit

Permalink
Move flush for libplacebo for PIP
Browse files Browse the repository at this point in the history
  • Loading branch information
Joachim König authored and Joachim König committed Jan 20, 2024
1 parent aa0c2f8 commit f3e5a14
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions video.c
Original file line number Diff line number Diff line change
Expand Up @@ -4160,7 +4160,7 @@ static void CuvidMixVideo(CuvidDecoder *decoder, __attribute__((unused)) int lev
Debug(4, "Failed rendering frame!\n");
}

pl_gpu_finish(p->gpu);

// printf("Rendertime %ld -- \n,",GetusTicks() - tt);

if (VideoScalerTest) { // left side test scaler
Expand Down Expand Up @@ -4474,7 +4474,9 @@ static void CuvidDisplayFrame(void) {
decoder->grab = 0;
}
}

#ifdef PLACEBO
pl_gpu_finish(p->gpu);
#endif

#ifndef PLACEBO
// add osd to surface
Expand Down

0 comments on commit f3e5a14

Please sign in to comment.