mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-13 12:51:16 +00:00
sdp: warn and skip streams without media
This commit is contained in:
parent
0ea3214326
commit
e1765dec13
1 changed files with 11 additions and 1 deletions
|
@ -63,9 +63,19 @@ gst_rtsp_sdp_from_media (GstRTSPMedia *media)
|
|||
GString *fmtp;
|
||||
|
||||
stream = gst_rtsp_media_get_stream (media, i);
|
||||
gst_sdp_media_new (&smedia);
|
||||
|
||||
if (stream->caps == NULL) {
|
||||
g_warning ("ignoring stream %d without media type", i);
|
||||
continue;
|
||||
}
|
||||
|
||||
s = gst_caps_get_structure (stream->caps, 0);
|
||||
if (s == NULL) {
|
||||
g_warning ("ignoring stream %d without media type", i);
|
||||
continue;
|
||||
}
|
||||
|
||||
gst_sdp_media_new (&smedia);
|
||||
|
||||
/* get media type and payload for the m= line */
|
||||
caps_str = gst_structure_get_string (s, "media");
|
||||
|
|
Loading…
Reference in a new issue