Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
45dd84db
Commit
45dd84db
authored
Oct 10, 2010
by
Jean-Baptiste Kempf
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MKV, io_callback cosmetics
parent
0e1a2635
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
11 deletions
+8
-11
modules/demux/mkv/stream_io_callback.cpp
modules/demux/mkv/stream_io_callback.cpp
+8
-9
modules/demux/mkv/stream_io_callback.hpp
modules/demux/mkv/stream_io_callback.hpp
+0
-2
No files found.
modules/demux/mkv/stream_io_callback.cpp
View file @
45dd84db
/*****************************************************************************
* mkv.cpp : matroska demuxer
*****************************************************************************
* Copyright (C) 2003-2004 the VideoLAN team
* Copyright (C) 2003-2004
, 2010
the VideoLAN team
* $Id$
*
* Authors: Laurent Aimar <fenrir@via.ecp.fr>
...
...
@@ -22,32 +21,32 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
*****************************************************************************/
#include "stream_io_callback.hpp"
#include "matroska_segment.hpp"
#include "demux.hpp"
/*****************************************************************************
* Stream managment
*****************************************************************************/
vlc_stream_io_callback
::
vlc_stream_io_callback
(
stream_t
*
s_
,
bool
b_owner_
)
vlc_stream_io_callback
::
vlc_stream_io_callback
(
stream_t
*
s_
,
bool
b_owner_
),
s
(
s_
),
b_owner
(
b_owner_
)
{
s
=
s_
;
b_owner
=
b_owner_
;
mb_eof
=
false
;
}
uint32
vlc_stream_io_callback
::
read
(
void
*
p_buffer
,
size_t
i_size
)
{
if
(
i_size
<=
0
||
mb_eof
)
{
return
0
;
}
return
stream_Read
(
s
,
p_buffer
,
i_size
);
}
void
vlc_stream_io_callback
::
setFilePointer
(
int64_t
i_offset
,
seek_mode
mode
)
{
int64_t
i_pos
;
int64_t
i_pos
,
i_size
;
switch
(
mode
)
{
...
...
@@ -62,7 +61,7 @@ void vlc_stream_io_callback::setFilePointer(int64_t i_offset, seek_mode mode )
break
;
}
if
(
i_pos
<
0
||
(
stream_Size
(
s
)
!=
0
&&
i_pos
>=
stream_Size
(
s
)
)
)
if
(
i_pos
<
0
||
(
(
i_size
=
stream_Size
(
s
)
)
!=
0
&&
i_pos
>=
i_size
)
)
{
mb_eof
=
true
;
return
;
...
...
modules/demux/mkv/stream_io_callback.hpp
View file @
45dd84db
/*****************************************************************************
* mkv.cpp : matroska demuxer
*****************************************************************************
...
...
@@ -50,4 +49,3 @@ class vlc_stream_io_callback: public IOCallback
virtual
void
close
(
void
)
{
return
;
}
};
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