mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
rtp: do not overrule RtpInfo when non dynamic type
When looking up the Rtp information, do not overwrite information already found with encoding-name by static information.
This commit is contained in:
parent
8dbaed0af7
commit
efd155c4d9
1 changed files with 8 additions and 3 deletions
|
@ -123,9 +123,14 @@ gst_rtp_src_rtpbin_request_pt_map_cb (GstElement * rtpbin, guint session_id,
|
|||
|
||||
}
|
||||
|
||||
/* Static payload types, this is a simple lookup */
|
||||
if (!GST_RTP_PAYLOAD_IS_DYNAMIC (pt)) {
|
||||
p = gst_rtp_payload_info_for_pt (pt);
|
||||
/* If info has been found before based on the encoding-name, go with
|
||||
* it. If not, try to look it up on with a static one. Needs to be guarded
|
||||
* because some encoders do not use dynamic values for H.264 */
|
||||
if (p == NULL) {
|
||||
/* Static payload types, this is a simple lookup */
|
||||
if (!GST_RTP_PAYLOAD_IS_DYNAMIC (pt)) {
|
||||
p = gst_rtp_payload_info_for_pt (pt);
|
||||
}
|
||||
}
|
||||
|
||||
if (p != NULL) {
|
||||
|
|
Loading…
Reference in a new issue