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.
This commit is contained in:
Edward Hervey 2018-08-29 09:51:42 +02:00 committed by Edward Hervey
parent 9d6621a30d
commit 8b4db06733

View file

@ -622,6 +622,10 @@ gst_rtp_mp4v_pay_get_property (GObject * object, guint prop_id,
gboolean gboolean
gst_rtp_mp4v_pay_plugin_init (GstPlugin * plugin) 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", return gst_element_register (plugin, "rtpmp4vpay",
GST_RANK_SECONDARY, GST_TYPE_RTP_MP4V_PAY); GST_RANK_SECONDARY + 1, GST_TYPE_RTP_MP4V_PAY);
} }