mirror of
https://github.com/jojo61/vdr-plugin-softhdcuvid.git
synced 2023-10-10 13:37:41 +02:00
improve channelswitch
This commit is contained in:
parent
053fd53bc4
commit
fae0d3a9bd
16
video.c
16
video.c
@ -3693,8 +3693,13 @@ static void CuvidMixVideo(CuvidDecoder * decoder, __attribute__((unused))int lev
|
|||||||
target->num_overlays = 0;
|
target->num_overlays = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (decoder->newchannel && current == 0 )
|
if (decoder->newchannel && current == 0 ) {
|
||||||
|
colors.brightness = -1.0f;
|
||||||
|
if (!pl_render_image(p->renderer, &decoder->pl_images[current], target, &render_params)) {
|
||||||
|
Debug(3,"Failed rendering frame!\n");
|
||||||
|
}
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
decoder->newchannel = 0;
|
decoder->newchannel = 0;
|
||||||
|
|
||||||
@ -3922,13 +3927,9 @@ last_time = GetusTicks();
|
|||||||
if (filled < 1 + 2 * decoder->Interlaced) {
|
if (filled < 1 + 2 * decoder->Interlaced) {
|
||||||
// FIXME: rewrite MixVideo to support less surfaces
|
// FIXME: rewrite MixVideo to support less surfaces
|
||||||
if ((VideoShowBlackPicture && !decoder->TrickSpeed) ||
|
if ((VideoShowBlackPicture && !decoder->TrickSpeed) ||
|
||||||
(VideoShowBlackPicture && decoder->Closing < -300)) { // ||
|
(VideoShowBlackPicture && decoder->Closing < -300)) {
|
||||||
// (!decoder->TrickSpeed && decoder->newchannel)) {
|
|
||||||
CuvidBlackSurface(decoder);
|
CuvidBlackSurface(decoder);
|
||||||
#ifdef PLACEBO
|
CuvidMessage(4, "video/cuvid: black surface displayed\n");
|
||||||
pl_tex_clear(p->gpu,target.fbo,(float[4]){0});
|
|
||||||
#endif
|
|
||||||
CuvidMessage(3, "video/cuvid: black surface displayed\n");
|
|
||||||
}
|
}
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -6185,6 +6186,7 @@ void VideoSetVideoMode( __attribute__ ((unused))
|
|||||||
|
|
||||||
#ifdef USE_OPENGLOSD
|
#ifdef USE_OPENGLOSD
|
||||||
if (VideoEventCallback) {
|
if (VideoEventCallback) {
|
||||||
|
sleep(1);
|
||||||
VideoEventCallback();
|
VideoEventCallback();
|
||||||
Debug(3,"call back set video mode %d %d\n",width,height);
|
Debug(3,"call back set video mode %d %d\n",width,height);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user