mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-26 06:54:49 +00:00
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:
parent
d07ffae343
commit
5976f4b8d8
1 changed files with 3 additions and 1 deletions
|
@ -447,7 +447,9 @@ gst_hls_sink2_handle_message (GstBin * bin, GstMessage * message)
|
||||||
entry_location = g_path_get_basename (sink->current_location);
|
entry_location = g_path_get_basename (sink->current_location);
|
||||||
} else {
|
} else {
|
||||||
gchar *name = g_path_get_basename (sink->current_location);
|
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);
|
g_free (name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue