From dda3106650e847f95fa91fedebc4523aad847780 Mon Sep 17 00:00:00 2001 From: Luciana Fujii Pontello Date: Tue, 21 Aug 2012 23:22:19 -0300 Subject: [PATCH] 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 --- gst/hls/gsthlssink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gst/hls/gsthlssink.c b/gst/hls/gsthlssink.c index cb94704cb3..8d33c335c7 100644 --- a/gst/hls/gsthlssink.c +++ b/gst/hls/gsthlssink.c @@ -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);