hlssink: Fix segment names on playlist

When the playlist-root is not set, the segment name must not be
appended by the path.

https://bugzilla.gnome.org/show_bug.cgi?id=687133
This commit is contained in:
Luciana Fujii Pontello 2012-08-21 23:22:19 -03:00 committed by Tim-Philipp Müller
parent 9e1b75fda3
commit dda3106650

View file

@ -240,7 +240,7 @@ gst_hls_sink_handle_message (GstBin * bin, GstMessage * message)
title = "ciao";
GST_INFO_OBJECT (sink, "COUNT %d", sink->index);
if (sink->playlist_root == NULL)
entry_location = g_strdup (filename);
entry_location = g_path_get_basename (filename);
else {
gchar *name = g_path_get_basename (filename);
entry_location = g_build_filename (sink->playlist_root, name, NULL);