mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 05:06:17 +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 info has been found before based on the encoding-name, go with
|
||||||
if (!GST_RTP_PAYLOAD_IS_DYNAMIC (pt)) {
|
* it. If not, try to look it up on with a static one. Needs to be guarded
|
||||||
p = gst_rtp_payload_info_for_pt (pt);
|
* 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) {
|
if (p != NULL) {
|
||||||
|
|
Loading…
Reference in a new issue