Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
bd8e9334
Commit
bd8e9334
authored
Feb 20, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Feb 22, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: set segment url relative if url is not valid
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
89dd589d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
modules/stream_filter/dash/http/HTTPConnection.cpp
modules/stream_filter/dash/http/HTTPConnection.cpp
+10
-2
modules/stream_filter/dash/http/HTTPConnection.h
modules/stream_filter/dash/http/HTTPConnection.h
+1
-0
No files found.
modules/stream_filter/dash/http/HTTPConnection.cpp
View file @
bd8e9334
...
...
@@ -74,8 +74,16 @@ int HTTPConnection::peek (const uint8_t **pp_peek, size_t
}
void
HTTPConnection
::
parseURL
()
{
this
->
hostname
=
this
->
url
;
this
->
hostname
.
erase
(
0
,
7
);
if
(
this
->
url
.
compare
(
0
,
4
,
"http"
))
{
this
->
hostname
=
Helper
::
combinePaths
(
Helper
::
getDirectoryPath
(
stream
->
psz_path
),
this
->
url
);
}
else
{
this
->
hostname
=
this
->
url
;
this
->
hostname
.
erase
(
0
,
7
);
}
this
->
path
=
this
->
hostname
;
size_t
pos
=
this
->
hostname
.
find
(
"/"
);
...
...
modules/stream_filter/dash/http/HTTPConnection.h
View file @
bd8e9334
...
...
@@ -37,6 +37,7 @@
#include "http/IHTTPConnection.h"
#include "http/Chunk.h"
#include "Helper.h"
#define PEEKBUFFER 4096
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment