From a657f789d337703b8cfc7591bcefdab94046aa3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Wed, 9 Dec 2009 15:27:14 +0000 Subject: [PATCH] ffmpegdec: ignore all vdpau decoders Make check for vdpau decoders more generic. There might be vdpau decoders we don't expect when using an external ffmpeg version, and we want those blacklisted as well (e.g. ffdec_mpeg4_vdpau). --- ext/ffmpeg/gstffmpegdec.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c index 2a5bd51b48..37cd48b75c 100644 --- a/ext/ffmpeg/gstffmpegdec.c +++ b/ext/ffmpeg/gstffmpegdec.c @@ -2789,13 +2789,7 @@ gst_ffmpegdec_register (GstPlugin * plugin) /* No vdpau plugins until we can figure out how to properly use them * outside of ffmpeg. */ - if (!strcmp (in_plugin->name, "h264_vdpau") || - !strcmp (in_plugin->name, "mpeg_vdpau") || - !strcmp (in_plugin->name, "mpeg1_vdpau") || - !strcmp (in_plugin->name, "mpegvideo_vdpau") || - !strcmp (in_plugin->name, "mpeg1video_vdpau") || - !strcmp (in_plugin->name, "vc1_vdpau") || - !strcmp (in_plugin->name, "wmv3_vdpau")) { + if (g_str_has_suffix (in_plugin->name, "_vdpau")) { GST_DEBUG ("Ignoring VDPAU decoder %s. We can't handle this outside of ffmpeg", in_plugin->name);