if (g_strcmp0 (control_path, "*") == 0)
control_path = g_strdup (base);
else
- stream->conninfo.location = gst_uri_join_strings (base, control_path);
+#ifdef TIZEN_FEATURE_RTSP_MODIFICATION
+ {
+ /* If uri does not end with slash, gst_uri_join_strings() ignores the last path.
+ * Similar issue exists, but there was no official patch yet.
+ * https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/2614
+ * So we added slash at the end of uri and we will monitor this issue. */
+ if (!g_str_has_suffix (base, "/")) {
+ /* base with slash added at the end of uri */
+ gchar *base2 = g_strconcat(base, "/", NULL);
+ stream->conninfo.location = gst_uri_join_strings (base2, control_path);
+ g_free(base2);
+ } else {
+#endif
+ stream->conninfo.location = gst_uri_join_strings (base, control_path);
+#ifdef TIZEN_FEATURE_RTSP_MODIFICATION
+ }
+ }
+#endif
}
}
GST_DEBUG_OBJECT (src, " setup: %s",