summaryrefslogtreecommitdiff
path: root/softhddev.c
diff options
context:
space:
mode:
Diffstat (limited to 'softhddev.c')
-rw-r--r--softhddev.c24
1 files changed, 6 insertions, 18 deletions
diff --git a/softhddev.c b/softhddev.c
index bc0a3a4..8881600 100644
--- a/softhddev.c
+++ b/softhddev.c
@@ -80,12 +80,6 @@ static void DumpMpeg(const uint8_t * data, int size);
// Variables
//////////////////////////////////////////////////////////////////////////////
-#ifdef USE_VDPAU
-static char VdpauDecoder = 1; ///< vdpau decoder used
-#else
-#define VdpauDecoder 0 ///< no vdpau decoder configured
-#endif
-
extern int ConfigAudioBufferTime; ///< config size ms of audio buffer
extern int ConfigVideoClearOnSwitch; //< clear decoder on channel switch
char ConfigStartX11Server; ///< flag start the x11 server
@@ -707,7 +701,7 @@ static void PesParse(PesDemux * pesdx, const uint8_t * data, int size,
Debug(3, "pesdemux: new codec %#06x -> %#06x\n",
AudioCodecID, codec_id);
CodecAudioClose(MyAudioDecoder);
- CodecAudioOpen(MyAudioDecoder, NULL, codec_id);
+ CodecAudioOpen(MyAudioDecoder, codec_id);
AudioCodecID = codec_id;
}
av_init_packet(avpkt);
@@ -880,7 +874,7 @@ static void PesParse(PesDemux * pesdx, const uint8_t * data, int size,
(q[5] & 0x7) + 1);
// FIXME: support resample
}
- //CodecAudioOpen(MyAudioDecoder, NULL, AV_CODEC_ID_PCM_DVD);
+ //CodecAudioOpen(MyAudioDecoder, AV_CODEC_ID_PCM_DVD);
AudioCodecID = AV_CODEC_ID_PCM_DVD;
}
pesdx->State = PES_LPCM_PAYLOAD;
@@ -1143,7 +1137,7 @@ int PlayAudio(const uint8_t * data, int size, uint8_t id)
(p[5] & 0x7) + 1);
// FIXME: support resample
}
- //CodecAudioOpen(MyAudioDecoder, NULL, AV_CODEC_ID_PCM_DVD);
+ //CodecAudioOpen(MyAudioDecoder, AV_CODEC_ID_PCM_DVD);
AudioCodecID = AV_CODEC_ID_PCM_DVD;
}
@@ -1216,7 +1210,7 @@ int PlayAudio(const uint8_t * data, int size, uint8_t id)
// new codec id, close and open new
if (AudioCodecID != codec_id) {
CodecAudioClose(MyAudioDecoder);
- CodecAudioOpen(MyAudioDecoder, NULL, codec_id);
+ CodecAudioOpen(MyAudioDecoder, codec_id);
AudioCodecID = codec_id;
}
av_init_packet(avpkt);
@@ -1940,16 +1934,13 @@ int VideoDecodeInput(VideoStream * stream)
case AV_CODEC_ID_MPEG2VIDEO:
if (stream->LastCodecID != AV_CODEC_ID_MPEG2VIDEO) {
stream->LastCodecID = AV_CODEC_ID_MPEG2VIDEO;
- CodecVideoOpen(stream->Decoder, VideoHardwareDecoder < 0
- && VdpauDecoder ? "mpegvideo_vdpau" : NULL,
- AV_CODEC_ID_MPEG2VIDEO);
+ CodecVideoOpen(stream->Decoder, AV_CODEC_ID_MPEG2VIDEO);
}
break;
case AV_CODEC_ID_H264:
if (stream->LastCodecID != AV_CODEC_ID_H264) {
stream->LastCodecID = AV_CODEC_ID_H264;
- CodecVideoOpen(stream->Decoder, VideoHardwareDecoder
- && VdpauDecoder ? "h264_vdpau" : NULL, AV_CODEC_ID_H264);
+ CodecVideoOpen(stream->Decoder, AV_CODEC_ID_H264);
}
break;
default:
@@ -2013,9 +2004,6 @@ int VideoGetBuffers(const VideoStream * stream)
static void StartVideo(void)
{
VideoInit(X11DisplayName);
-#ifdef USE_VDPAU
- VdpauDecoder = !strcasecmp(VideoGetDriverName(), "vdpau");
-#endif
if (ConfigFullscreen) {
// FIXME: not good looking, mapped and then resized.