[vlc-commits] hls: Fixing hls_Copy

Hugo Beauzée-Luyssen git at videolan.org
Tue Jan 24 19:03:33 CET 2012


vlc | branch: master | Hugo Beauzée-Luyssen <beauze.h at gmail.com> | Tue Jan 24 15:09:55 2012 +0100| [e618a5814917b1f966395ed3b45d1ca522a13692] | committer: Jean-Baptiste Kempf

hls: Fixing hls_Copy

Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=e618a5814917b1f966395ed3b45d1ca522a13692
---

 modules/stream_filter/httplive.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/modules/stream_filter/httplive.c b/modules/stream_filter/httplive.c
index 82e9c37..3c52b83 100644
--- a/modules/stream_filter/httplive.c
+++ b/modules/stream_filter/httplive.c
@@ -266,6 +266,8 @@ static hls_stream_t *hls_Copy(hls_stream_t *src, const bool b_cp_segments)
     dst->sequence = src->sequence;
     dst->version = src->version;
     dst->b_cache = src->b_cache;
+    dst->psz_current_key_path = src->psz_current_key_path ?
+                strdup( src->psz_current_key_path ) : NULL;
     char *uri = ConstructUrl(&src->url);
     if (uri == NULL)
     {



More information about the vlc-commits mailing list