Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f4600d0e
Commit
f4600d0e
authored
Nov 25, 2011
by
Hugo Beauzée-Luyssen
Committed by
Jean-Baptiste Kempf
Nov 28, 2011
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: Chunk: Avoiding copies + cosmetics
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
8c55fe50
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
17 deletions
+13
-17
modules/stream_filter/dash/http/Chunk.cpp
modules/stream_filter/dash/http/Chunk.cpp
+7
-10
modules/stream_filter/dash/http/Chunk.h
modules/stream_filter/dash/http/Chunk.h
+6
-7
No files found.
modules/stream_filter/dash/http/Chunk.cpp
View file @
f4600d0e
...
@@ -29,24 +29,21 @@
...
@@ -29,24 +29,21 @@
using
namespace
dash
::
http
;
using
namespace
dash
::
http
;
Chunk
::
Chunk
()
:
url
()
Chunk
::
Chunk
()
:
startByte
(
0
),
endByte
(
0
)
{
startByte
=
endByte
=
0
;
}
Chunk
::~
Chunk
()
{
{
}
}
int
Chunk
::
getEndByte
()
int
Chunk
::
getEndByte
()
const
{
{
return
endByte
;
return
endByte
;
}
}
int
Chunk
::
getStartByte
()
int
Chunk
::
getStartByte
()
const
{
{
return
startByte
;
return
startByte
;
}
}
std
::
string
Chunk
::
getUrl
()
const
std
::
string
&
Chunk
::
getUrl
()
const
{
{
return
url
;
return
url
;
}
}
...
@@ -58,7 +55,7 @@ void Chunk::setStartByte (int startByte)
...
@@ -58,7 +55,7 @@ void Chunk::setStartByte (int startByte)
{
{
this
->
startByte
=
startByte
;
this
->
startByte
=
startByte
;
}
}
void
Chunk
::
setUrl
(
std
::
string
url
)
void
Chunk
::
setUrl
(
const
std
::
string
&
url
)
{
{
this
->
url
=
url
;
this
->
url
=
url
;
}
}
modules/stream_filter/dash/http/Chunk.h
View file @
f4600d0e
...
@@ -36,14 +36,13 @@ namespace dash
...
@@ -36,14 +36,13 @@ namespace dash
{
{
public:
public:
Chunk
();
Chunk
();
virtual
~
Chunk
();
int
getEndByte
()
;
int
getEndByte
()
const
;
int
getStartByte
()
;
int
getStartByte
()
const
;
std
::
string
getUrl
()
;
const
std
::
string
&
getUrl
()
const
;
void
setEndByte
(
int
endByte
);
void
setEndByte
(
int
endByte
);
void
setStartByte
(
int
startByte
);
void
setStartByte
(
int
startByte
);
void
setUrl
(
std
::
string
url
);
void
setUrl
(
const
std
::
string
&
url
);
private:
private:
std
::
string
url
;
std
::
string
url
;
...
...
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