hlssink2: Always use forward slash separator

g_build_filename() will insert back slash on Windows, and resulting
playlist will contain media segment path with back slash if
"playlist-root" property is specified

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/5158>
This commit is contained in:
Seungha Yang 2023-08-08 01:29:40 +09:00 committed by GStreamer Marge Bot
parent d07ffae343
commit 5976f4b8d8

View file

@ -447,7 +447,9 @@ gst_hls_sink2_handle_message (GstBin * bin, GstMessage * message)
entry_location = g_path_get_basename (sink->current_location);
} else {
gchar *name = g_path_get_basename (sink->current_location);
entry_location = g_build_filename (sink->playlist_root, name, NULL);
/* g_build_filename() will insert back slash on Windows */
entry_location = g_build_path ("/",
sink->playlist_root, name, NULL);
g_free (name);
}