summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
authorJohns <johns98@gmx.net>2011-12-23 19:33:30 +0100
committerJohns <johns98@gmx.net>2011-12-23 19:33:30 +0100
commit06fddc206e5fec17bd59f4e8005e44bde957f8cc (patch)
tree538f3f693c1f7691fa5bdf41ccecb65dacd39597 /softhddev.c
parent1e18da47f7466b68e52b5d64eebfbdde8f693116 (diff)
downloadvdr-plugin-softhddevice-06fddc206e5fec17bd59f4e8005e44bde957f8cc.tar.gz
vdr-plugin-softhddevice-06fddc206e5fec17bd59f4e8005e44bde957f8cc.tar.bz2
Initial vdpau hw decoder support.
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/softhddev.c b/softhddev.c
index a96c4d3..b3e89ed 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -44,6 +44,8 @@
static char BrokenThreadsAndPlugins; ///< broken vdr threads and plugins
+static char ConfigVdpauDecoder = 1; ///< use vdpau decoder, if possible
+
//////////////////////////////////////////////////////////////////////////////
// Audio
//////////////////////////////////////////////////////////////////////////////
@@ -366,14 +368,16 @@ int VideoDecode(void)
case CODEC_ID_MPEG2VIDEO:
if (last_codec_id != CODEC_ID_MPEG2VIDEO) {
last_codec_id = CODEC_ID_MPEG2VIDEO;
- CodecVideoOpen(MyVideoDecoder, 0 ? "mpegvideo_vdpau" : NULL,
+ CodecVideoOpen(MyVideoDecoder,
+ ConfigVdpauDecoder ? "mpegvideo_vdpau" : NULL,
CODEC_ID_MPEG2VIDEO);
}
break;
case CODEC_ID_H264:
if (last_codec_id != CODEC_ID_H264) {
last_codec_id = CODEC_ID_H264;
- CodecVideoOpen(MyVideoDecoder, 0 ? "h264video_vdpau" : NULL,
+ CodecVideoOpen(MyVideoDecoder,
+ ConfigVdpauDecoder ? "h264video_vdpau" : NULL,
CODEC_ID_H264);
}
break;