mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-15 22:01:27 +00:00
sdp: fix wrong error message for missing clock-rate in caps
When using `gst_sdp_media_set_media_from_caps` on `application/x-rtp` caps without `clock-rate` it wrongly reports missing payload type even if `payload` is present in the caps. This seems to be a copy&paste error from the error message for missing payload type. When using payload=10, both `clock-rate` and some other media properties are defined by the RTP standard so I was wondering whether I could omit `clock-rate` and was confused about the error message. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5250>
This commit is contained in:
parent
e2d7fbe94f
commit
9d3b57f362
1 changed files with 1 additions and 1 deletions
|
@ -3851,7 +3851,7 @@ gst_sdp_media_set_media_from_caps (const GstCaps * caps, GstSDPMedia * media)
|
|||
|
||||
/* get clock-rate, media type and params for the rtpmap attribute */
|
||||
if (!gst_structure_get_int (s, "clock-rate", &caps_rate)) {
|
||||
GST_ERROR ("ignoring stream without payload type");
|
||||
GST_ERROR ("ignoring stream without clock rate");
|
||||
goto error;
|
||||
}
|
||||
caps_enc = gst_structure_get_string (s, "encoding-name");
|
||||
|
|
Loading…
Reference in a new issue