vlc | branch: master | Francois Cartegnie <[email protected]> | Sat Nov  8 
18:31:32 2014 +0100| [31dab577fa011bb0d61a6c41fb3c9a649c247dec] | committer: 
Francois Cartegnie

stream_filter: smooth: handle "start_time" and "start time" patterns

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

 modules/stream_filter/smooth/downloader.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/modules/stream_filter/smooth/downloader.c 
b/modules/stream_filter/smooth/downloader.c
index 2a30b0c..64ca208 100644
--- a/modules/stream_filter/smooth/downloader.c
+++ b/modules/stream_filter/smooth/downloader.c
@@ -79,8 +79,10 @@ static char *ConstructUrl( const char *psz_template, const 
char *psz_base_url,
             }
             free( psz_bitrate );
         }
-        else if ( (psz_start = strstr( psz_path, "{start time}" )) )
+        else if ( (psz_start = strstr( psz_path, "{start time}" )) ||
+                  (psz_start = strstr( psz_path, "{start_time}" )) )
         {
+            psz_start[6] = ' ';
             char *psz_starttime = NULL;
             if ( us_asprintf( &psz_starttime, "%"PRIu64, i_start_time ) < 0 ||
                  ! Replace( &psz_path, psz_start - psz_path, "{start time}", 
psz_starttime ) )

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to