summaryrefslogtreecommitdiff
path: root/sys/d3d11/plugin.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/d3d11/plugin.c')
-rw-r--r--sys/d3d11/plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/sys/d3d11/plugin.c b/sys/d3d11/plugin.c
index 03b44978c..dee560b72 100644
--- a/sys/d3d11/plugin.c
+++ b/sys/d3d11/plugin.c
@@ -36,6 +36,7 @@
#include "gstd3d11h265dec.h"
#include "gstd3d11vp9dec.h"
#include "gstd3d11vp8dec.h"
+#include "gstd3d11mpeg2dec.h"
#endif
#ifdef HAVE_DXGI_DESKTOP_DUP
#include "gstd3d11desktopdupsrc.h"
@@ -57,6 +58,7 @@ GST_DEBUG_CATEGORY (gst_d3d11_h264_dec_debug);
GST_DEBUG_CATEGORY (gst_d3d11_h265_dec_debug);
GST_DEBUG_CATEGORY (gst_d3d11_vp9_dec_debug);
GST_DEBUG_CATEGORY (gst_d3d11_vp8_dec_debug);
+GST_DEBUG_CATEGORY (gst_d3d11_mpeg2_dec_debug);
#endif
#ifdef HAVE_DXGI_DESKTOP_DUP
@@ -109,6 +111,8 @@ plugin_init (GstPlugin * plugin)
"d3d11h265dec", 0, "Direct3D11 H.265 Video Decoder");
GST_DEBUG_CATEGORY_INIT (gst_d3d11_vp8_dec_debug,
"d3d11vp8dec", 0, "Direct3D11 VP8 Decoder");
+ GST_DEBUG_CATEGORY_INIT (gst_d3d11_mpeg2_dec_debug,
+ "d3d11mpeg2dec", 0, "Direct3D11 MPEG2 Decoder");
}
#endif
@@ -156,6 +160,8 @@ plugin_init (GstPlugin * plugin)
GST_RANK_SECONDARY);
gst_d3d11_vp8_dec_register (plugin, device, decoder,
GST_RANK_SECONDARY);
+ gst_d3d11_mpeg2_dec_register (plugin, device, decoder,
+ GST_RANK_SECONDARY);
}
done: