summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-08 17:38:39 +0100
committerJohns <johns98@gmx.net>2011-12-08 17:38:39 +0100
commitfc2580dc2aee2a7b86d3ca5428ce2e2e57c060b2 (patch)
tree08f8d23c50faf40ece4d629dce3ed874e6632aba
parent309e8e14e971a72686280bd1529741fdf5998edb (diff)
downloadvdr-plugin-softhddevice-fc2580dc2aee2a7b86d3ca5428ce2e2e57c060b2.tar.gz
vdr-plugin-softhddevice-fc2580dc2aee2a7b86d3ca5428ce2e2e57c060b2.tar.bz2
Use old aspect-ratio, make thread joinable.
-rw-r--r--video.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/video.c b/video.c
index 9bab2dc..f8dce63 100644
--- a/video.c
+++ b/video.c
@@ -2223,6 +2223,7 @@ static void VaapiRenderFrame(VaapiDecoder * decoder,
}
// update aspect ratio changes
+#ifdef still_to_detect_define
if (av_cmp_q(decoder->InputAspect, frame->sample_aspect_ratio)) {
Debug(3, "video/vaapi: aspect ratio changed\n");
@@ -2231,6 +2232,16 @@ static void VaapiRenderFrame(VaapiDecoder * decoder,
decoder->InputAspect = frame->sample_aspect_ratio;
VaapiUpdateOutput(decoder);
}
+#else
+ if (av_cmp_q(decoder->InputAspect, frame->sample_aspect_ratio)) {
+ Debug(3, "video/vaapi: aspect ratio changed\n");
+
+ //decoder->InputWidth = video_ctx->width;
+ //decoder->InputHeight = video_ctx->height;
+ decoder->InputAspect = frame->sample_aspect_ratio;
+ VaapiUpdateOutput(decoder);
+ }
+#endif
if (VideoDeinterlace == VideoDeinterlaceSoftware && interlaced) {
// FIXME: software deinterlace avpicture_deinterlace
@@ -3170,7 +3181,7 @@ void VideoDisplayHandler(void)
pthread_mutex_init(&VideoLockMutex, NULL);
pthread_cond_init(&VideoWakeupCond, NULL);
pthread_create(&VideoThread, NULL, VideoDisplayHandlerThread, NULL);
- pthread_detach(VideoThread);
+ //pthread_detach(VideoThread);
}
}