mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-27 02:30:35 +00:00
sdp: Set session as permanent (t=0 0) if there is no time information
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=697277
This commit is contained in:
parent
48208c61a8
commit
a83f96d988
1 changed files with 15 additions and 11 deletions
|
@ -399,20 +399,24 @@ gst_sdp_message_as_text (const GstSDPMessage * msg)
|
||||||
bandwidth->bandwidth);
|
bandwidth->bandwidth);
|
||||||
}
|
}
|
||||||
|
|
||||||
for (i = 0; i < gst_sdp_message_times_len (msg); i++) {
|
if (gst_sdp_message_times_len (msg) == 0) {
|
||||||
const GstSDPTime *times = gst_sdp_message_get_time (msg, i);
|
g_string_append_printf (lines, "t=0 0\r\n");
|
||||||
|
} else {
|
||||||
|
for (i = 0; i < gst_sdp_message_times_len (msg); i++) {
|
||||||
|
const GstSDPTime *times = gst_sdp_message_get_time (msg, i);
|
||||||
|
|
||||||
g_string_append_printf (lines, "t=%s %s\r\n", times->start, times->stop);
|
g_string_append_printf (lines, "t=%s %s\r\n", times->start, times->stop);
|
||||||
|
|
||||||
if (times->repeat != NULL) {
|
if (times->repeat != NULL) {
|
||||||
guint j;
|
guint j;
|
||||||
|
|
||||||
g_string_append_printf (lines, "r=%s",
|
g_string_append_printf (lines, "r=%s",
|
||||||
g_array_index (times->repeat, gchar *, 0));
|
g_array_index (times->repeat, gchar *, 0));
|
||||||
for (j = 1; j < times->repeat->len; j++)
|
for (j = 1; j < times->repeat->len; j++)
|
||||||
g_string_append_printf (lines, " %s",
|
g_string_append_printf (lines, " %s",
|
||||||
g_array_index (times->repeat, gchar *, j));
|
g_array_index (times->repeat, gchar *, j));
|
||||||
g_string_append_printf (lines, "\r\n");
|
g_string_append_printf (lines, "\r\n");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue