summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim.muller@collabora.co.uk>2009-12-09 15:27:14 +0000
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2009-12-09 15:27:14 +0000
commita657f789d337703b8cfc7591bcefdab94046aa3a (patch)
tree1e66d3a474f11f3cbc6718ee0b7f59d95c6dfd6e
parent299347e4269340e8c3e91ac6d0983382041357b2 (diff)
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).
-rw-r--r--ext/ffmpeg/gstffmpegdec.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/ext/ffmpeg/gstffmpegdec.c b/ext/ffmpeg/gstffmpegdec.c
index 2a5bd51..37cd48b 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);