From 7d253da43fba1ba53dab9923efbe9ea0db375a69 Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Thu, 22 Apr 2010 12:52:42 +0200 Subject: [PATCH] vdpau: add back gstvdpau.c --- sys/vdpau/gstvdpau.c | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 sys/vdpau/gstvdpau.c diff --git a/sys/vdpau/gstvdpau.c b/sys/vdpau/gstvdpau.c new file mode 100644 index 0000000000..d8e764e5b5 --- /dev/null +++ b/sys/vdpau/gstvdpau.c @@ -0,0 +1,35 @@ +#ifdef HAVE_CONFIG_H +# include +#endif + + +#include + +#include "gstvdp.h" + +#include "gstvdpmpegdec.h" +#include "gstvdpvideopostprocess.h" +#include "gstvdpsink.h" + +static gboolean +vdpau_init (GstPlugin * vdpau_plugin) +{ + gst_vdp_init (); + + /* Before giving these elements a rank again, make sure they pass at + * least the generic/states test when there's no device available */ + gst_element_register (vdpau_plugin, "vdpaumpegdec", + GST_RANK_NONE, GST_TYPE_VDP_MPEG_DEC); + gst_element_register (vdpau_plugin, "vdpauvideopostprocess", + GST_RANK_MARGINAL, GST_TYPE_VDP_VIDEO_POST_PROCESS); + gst_element_register (vdpau_plugin, "vdpausink", + GST_RANK_NONE, GST_TYPE_VDP_SINK); + + return TRUE; +} + +GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, + GST_VERSION_MINOR, + "vdpau", + "Various elements utilizing VDPAU", + vdpau_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")