mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 23:36:38 +00:00
426a6eaba9
set mpegvideoparse rank to primary and vdpaumpegdec to primary - 1 to get vdpaumpegdec correctly plugged into playbin
29 lines
740 B
C
29 lines
740 B
C
#ifdef HAVE_CONFIG_H
|
|
# include <config.h>
|
|
#endif
|
|
|
|
|
|
#include <gst/gst.h>
|
|
|
|
#include "gstvdpmpegdecoder.h"
|
|
#include "gstvdpvideoyuv.h"
|
|
#include "gstvdpyuvvideo.h"
|
|
|
|
static gboolean
|
|
vdpau_init (GstPlugin * vdpau_plugin)
|
|
{
|
|
gst_element_register (vdpau_plugin, "vdpaumpegdec",
|
|
GST_RANK_PRIMARY - 1, GST_TYPE_VDP_MPEG_DECODER);
|
|
gst_element_register (vdpau_plugin, "vdpauvideoyuv",
|
|
GST_RANK_PRIMARY, GST_TYPE_VDP_VIDEO_YUV);
|
|
gst_element_register (vdpau_plugin, "vdpauyuvvideo",
|
|
GST_RANK_PRIMARY, GST_TYPE_VDP_YUV_VIDEO);
|
|
|
|
return TRUE;
|
|
}
|
|
|
|
GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,
|
|
GST_VERSION_MINOR,
|
|
"vdpau",
|
|
"Various elements utilizing VDPAU",
|
|
vdpau_init, VERSION, "LGPL", "GStreamer", "http://gstreamer.net/")
|