vdpau: change element rank for testing purposes

set mpegvideoparse rank to primary and vdpaumpegdec to primary - 1 to get vdpaumpegdec
correctly plugged into playbin
This commit is contained in:
Carl-Anton Ingmarsson 2009-05-06 23:07:00 +02:00 committed by Jan Schmidt
parent 8e66a17830
commit 426a6eaba9
2 changed files with 2 additions and 2 deletions

View file

@ -961,7 +961,7 @@ plugin_init (GstPlugin * plugin)
"MPEG Video Parser"); "MPEG Video Parser");
return gst_element_register (plugin, "mpegvideoparse", 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, GST_PLUGIN_DEFINE (GST_VERSION_MAJOR,

View file

@ -13,7 +13,7 @@ static gboolean
vdpau_init (GstPlugin * vdpau_plugin) vdpau_init (GstPlugin * vdpau_plugin)
{ {
gst_element_register (vdpau_plugin, "vdpaumpegdec", 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_element_register (vdpau_plugin, "vdpauvideoyuv",
GST_RANK_PRIMARY, GST_TYPE_VDP_VIDEO_YUV); GST_RANK_PRIMARY, GST_TYPE_VDP_VIDEO_YUV);
gst_element_register (vdpau_plugin, "vdpauyuvvideo", gst_element_register (vdpau_plugin, "vdpauyuvvideo",