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/5161>
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);
}