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
a7754051
Commit
a7754051
authored
Jul 16, 2015
by
Francois Cartegnie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
demux: adaptative: tag first chunk block
parent
1e4a17c3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
modules/demux/adaptative/Streams.cpp
modules/demux/adaptative/Streams.cpp
+4
-2
modules/demux/adaptative/Streams.hpp
modules/demux/adaptative/Streams.hpp
+2
-2
No files found.
modules/demux/adaptative/Streams.cpp
View file @
a7754051
...
...
@@ -174,6 +174,7 @@ size_t Stream::read(HTTPConnectionManager *connManager)
}
size_t
readsize
=
0
;
bool
b_segment_head_chunk
=
false
;
/* New chunk, do query */
if
(
chunk
->
getBytesRead
()
==
0
)
...
...
@@ -185,6 +186,7 @@ size_t Stream::read(HTTPConnectionManager *connManager)
delete
chunk
;
return
0
;
}
b_segment_head_chunk
=
true
;
}
/* Because we don't know Chunk size at start, we need to get size
...
...
@@ -234,7 +236,7 @@ size_t Stream::read(HTTPConnectionManager *connManager)
readsize
=
block
->
i_buffer
;
if
(
output
)
output
->
pushBlock
(
block
);
output
->
pushBlock
(
block
,
b_segment_head_chunk
);
else
block_Release
(
block
);
...
...
@@ -371,7 +373,7 @@ int BaseStreamOutput::esCount() const
return
queues
.
size
();
}
void
BaseStreamOutput
::
pushBlock
(
block_t
*
block
)
void
BaseStreamOutput
::
pushBlock
(
block_t
*
block
,
bool
)
{
stream_DemuxSend
(
demuxstream
,
block
);
}
...
...
modules/demux/adaptative/Streams.hpp
View file @
a7754051
...
...
@@ -102,7 +102,7 @@ namespace adaptative
virtual
~
AbstractStreamOutput
();
const
StreamFormat
&
getStreamFormat
()
const
;
virtual
void
pushBlock
(
block_t
*
)
=
0
;
virtual
void
pushBlock
(
block_t
*
,
bool
)
=
0
;
virtual
mtime_t
getPCR
()
const
;
virtual
mtime_t
getFirstDTS
()
const
=
0
;
virtual
int
getGroup
()
const
;
...
...
@@ -134,7 +134,7 @@ namespace adaptative
public:
BaseStreamOutput
(
demux_t
*
,
const
StreamFormat
&
,
const
std
::
string
&
);
virtual
~
BaseStreamOutput
();
virtual
void
pushBlock
(
block_t
*
);
/* reimpl */
virtual
void
pushBlock
(
block_t
*
,
bool
);
/* reimpl */
virtual
mtime_t
getFirstDTS
()
const
;
/* reimpl */
virtual
int
esCount
()
const
;
/* reimpl */
virtual
bool
seekAble
()
const
;
/* reimpl */
...
...
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