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
152916ce
Commit
152916ce
authored
Feb 11, 2012
by
Christopher Mueller
Committed by
Hugo Beauzée-Luyssen
Feb 14, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dash: removed couts from buffer
Signed-off-by:
Hugo Beauzée-Luyssen
<
beauze.h@gmail.com
>
parent
270faee2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
12 deletions
+2
-12
modules/stream_filter/dash/buffer/BlockBuffer.cpp
modules/stream_filter/dash/buffer/BlockBuffer.cpp
+2
-12
No files found.
modules/stream_filter/dash/buffer/BlockBuffer.cpp
View file @
152916ce
...
...
@@ -79,12 +79,9 @@ int BlockBuffer::peek (const uint8_t **pp_peek, unsigned int
if
(
ret
>
this
->
peekBlock
->
i_buffer
)
this
->
peekBlock
=
block_Realloc
(
this
->
peekBlock
,
0
,
ret
);
std
::
cout
<<
"Peek Bytes: "
<<
ret
<<
" from buffer length: "
<<
this
->
sizeBytes
<<
std
::
endl
;
block_PeekBytes
(
&
this
->
buffer
,
this
->
peekBlock
->
p_buffer
,
ret
);
*
pp_peek
=
this
->
peekBlock
->
p_buffer
;
std
::
cout
<<
"Buffer length Sec: "
<<
this
->
sizeMicroSec
<<
" Bytes: "
<<
this
->
sizeBytes
<<
std
::
endl
;
vlc_mutex_unlock
(
&
this
->
monitorMutex
);
return
ret
;
}
...
...
@@ -106,13 +103,9 @@ int BlockBuffer::get (void *p_data, unsigned int len)
this
->
reduceBufferMilliSec
(
ret
);
std
::
cout
<<
"Get Bytes: "
<<
ret
<<
" from buffer length: "
<<
this
->
sizeBytes
<<
std
::
endl
;
block_GetBytes
(
&
this
->
buffer
,
(
uint8_t
*
)
p_data
,
ret
);
block_BytestreamFlush
(
&
this
->
buffer
);
std
::
cout
<<
"Buffer length: "
<<
this
->
sizeMicroSec
<<
" Bytes: "
<<
this
->
sizeBytes
<<
std
::
endl
;
vlc_cond_signal
(
&
this
->
empty
);
vlc_mutex_unlock
(
&
this
->
monitorMutex
);
return
ret
;
...
...
@@ -131,13 +124,11 @@ void BlockBuffer::put (block_t *block)
return
;
}
std
::
cout
<<
"Put MilliSec: "
<<
block
->
i_length
<<
" Bytes: "
<<
block
->
i_buffer
<<
" into buffer"
<<
std
::
endl
;
this
->
sizeMicroSec
+=
block
->
i_length
;
this
->
sizeBytes
+=
block
->
i_buffer
;
block_BytestreamPush
(
&
this
->
buffer
,
block
);
std
::
cout
<<
"Buffer length: "
<<
this
->
sizeMicroSec
<<
" Bytes: "
<<
this
->
sizeBytes
<<
std
::
endl
;
vlc_cond_signal
(
&
this
->
full
);
vlc_mutex_unlock
(
&
this
->
monitorMutex
);
}
...
...
@@ -198,7 +189,6 @@ void BlockBuffer::reduceBufferMilliSec (size_t bytes)
}
}
std
::
cout
<<
"Reduce: "
<<
microsec
<<
std
::
endl
;
this
->
sizeMicroSec
-=
microsec
;
this
->
sizeBytes
-=
bytes
;
...
...
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