From 8b4db0673309b820c31b7860956491b86a94a3b0 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Wed, 29 Aug 2018 09:51:42 +0200 Subject: [PATCH] rtpmp4vpay: Increase ranking Both rtpmp4vpay and rtpmp4gpay support MPEG4 elementary streams. But the most supported variant is the video-specific one (rtpmp4vpay), therefore increase the rank of that one so that auto-plugging of payloaders for MPEG4 elementary streams ends up picking that one and not the generic one. --- gst/rtp/gstrtpmp4vpay.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gst/rtp/gstrtpmp4vpay.c b/gst/rtp/gstrtpmp4vpay.c index 7e76b23449..db3fe4f590 100644 --- a/gst/rtp/gstrtpmp4vpay.c +++ b/gst/rtp/gstrtpmp4vpay.c @@ -622,6 +622,10 @@ gst_rtp_mp4v_pay_get_property (GObject * object, guint prop_id, gboolean gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin) { + /* Note: This element is marked at a "+1" rank to make sure that + * auto-plugging of payloaders for MPEG4 elementary streams don't + * end up using the 'rtpmp4gpay' element (generic mpeg4) which isn't + * as well supported as this RFC */ return gst_element_register (plugin, "rtpmp4vpay", - GST_RANK_SECONDARY, GST_TYPE_RTP_MP4V_PAY); + GST_RANK_SECONDARY + 1, GST_TYPE_RTP_MP4V_PAY); }