diff options
author | Martin Storsjo <martin@martin.st> | 2013-11-22 17:57:31 +0200 |
---|---|---|
committer | Lajos Molnar <lajos@google.com> | 2014-03-06 18:11:27 -0800 |
commit | a1076eb135b74a32e9bdc1aed17aee4374eb41af (patch) | |
tree | f071cede95394ffcdde758cb5dbf8b16be97cb8c /media/libstagefright/httplive/LiveSession.h | |
parent | 75d03185ac7be95c700f3f375080989e5de03ef6 (diff) | |
download | frameworks_av-a1076eb135b74a32e9bdc1aed17aee4374eb41af.zip frameworks_av-a1076eb135b74a32e9bdc1aed17aee4374eb41af.tar.gz frameworks_av-a1076eb135b74a32e9bdc1aed17aee4374eb41af.tar.bz2 |
LiveSession: Use the actual, possibly redirected url as base in the M3U
This fixes playback of HLS streams where the M3U playlists use
relative paths and the main playlist is opened via a redirect.
Bug: 13174301
Change-Id: I787e1c050daddc566be4c8e3f84803d3f91eec46
Diffstat (limited to 'media/libstagefright/httplive/LiveSession.h')
-rw-r--r-- | media/libstagefright/httplive/LiveSession.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/media/libstagefright/httplive/LiveSession.h b/media/libstagefright/httplive/LiveSession.h index e26d024..376d451 100644 --- a/media/libstagefright/httplive/LiveSession.h +++ b/media/libstagefright/httplive/LiveSession.h @@ -207,7 +207,8 @@ private: /* download block size */ uint32_t block_size = 0, /* reuse DataSource if doing partial fetch */ - sp<DataSource> *source = NULL); + sp<DataSource> *source = NULL, + String8 *actualUrl = NULL); sp<M3UParser> fetchPlaylist( const char *url, uint8_t *curPlaylistHash, bool *unchanged); |