From 426a6eaba9776157f43da280d37b81ac49cccd72 Mon Sep 17 00:00:00 2001 From: Carl-Anton Ingmarsson Date: Wed, 6 May 2009 23:07:00 +0200 Subject: vdpau: change element rank for testing purposes set mpegvideoparse rank to primary and vdpaumpegdec to primary - 1 to get vdpaumpegdec correctly plugged into playbin --- gst/mpegvideoparse/mpegvideoparse.c | 2 +- sys/vdpau/gstvdp.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gst/mpegvideoparse/mpegvideoparse.c b/gst/mpegvideoparse/mpegvideoparse.c index d0badbfc..eefa6843 100644 --- a/gst/mpegvideoparse/mpegvideoparse.c +++ b/gst/mpegvideoparse/mpegvideoparse.c @@ -961,7 +961,7 @@ plugin_init (GstPlugin * plugin) "MPEG Video Parser"); return gst_element_register (plugin, "mpegvideoparse", - GST_RANK_SECONDARY - 1, GST_TYPE_MPEGVIDEOPARSE); + GST_RANK_PRIMARY, GST_TYPE_MPEGVIDEOPARSE); } GST_PLUGIN_DEFINE (GST_VERSION_MAJOR, diff --git a/sys/vdpau/gstvdp.c b/sys/vdpau/gstvdp.c index 64ebf37e..8d5be3dc 100644 --- a/sys/vdpau/gstvdp.c +++ b/sys/vdpau/gstvdp.c @@ -13,7 +13,7 @@ static gboolean vdpau_init (GstPlugin * vdpau_plugin) { gst_element_register (vdpau_plugin, "vdpaumpegdec", - GST_RANK_NONE, GST_TYPE_VDP_MPEG_DECODER); + 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", -- cgit v1.2.1