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
96789285
Commit
96789285
authored
Mar 09, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Mar 20, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: added connection to chunk
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
eb5ab7ff
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
1 deletion
+15
-1
modules/stream_filter/dash/http/Chunk.cpp
modules/stream_filter/dash/http/Chunk.cpp
+10
-1
modules/stream_filter/dash/http/Chunk.h
modules/stream_filter/dash/http/Chunk.h
+5
-0
No files found.
modules/stream_filter/dash/http/Chunk.cpp
View file @
96789285
...
...
@@ -36,7 +36,8 @@ Chunk::Chunk () :
port
(
0
),
isHostname
(
false
),
length
(
0
),
bytesRead
(
0
)
bytesRead
(
0
),
connection
(
NULL
)
{
}
...
...
@@ -140,3 +141,11 @@ size_t Chunk::getPercentDownloaded () const
{
return
(
size_t
)(((
float
)
this
->
bytesRead
/
this
->
length
)
*
100
);
}
IHTTPConnection
*
Chunk
::
getConnection
()
const
{
return
this
->
connection
;
}
void
Chunk
::
setConnection
(
IHTTPConnection
*
connection
)
{
this
->
connection
=
connection
;
}
modules/stream_filter/dash/http/Chunk.h
View file @
96789285
...
...
@@ -28,6 +28,8 @@
#include <vlc_common.h>
#include <vlc_url.h>
#include "IHTTPConnection.h"
#include <vector>
#include <string>
#include <stdint.h>
...
...
@@ -52,7 +54,9 @@ namespace dash
uint64_t
getBytesRead
()
const
;
uint64_t
getBytesToRead
()
const
;
size_t
getPercentDownloaded
()
const
;
IHTTPConnection
*
getConnection
()
const
;
void
setConnection
(
IHTTPConnection
*
connection
);
void
setBytesRead
(
uint64_t
bytes
);
void
setLength
(
uint64_t
length
);
void
setEndByte
(
int
endByte
);
...
...
@@ -77,6 +81,7 @@ namespace dash
bool
isHostname
;
size_t
length
;
uint64_t
bytesRead
;
IHTTPConnection
*
connection
;
};
}
}
...
...
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