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
3ff2f307
Commit
3ff2f307
authored
Jun 23, 2005
by
Derk-Jan Hartman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Properly release streams. closes #226
parent
2d5bfe66
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+12
-4
No files found.
modules/demux/mkv.cpp
View file @
3ff2f307
...
...
@@ -492,9 +492,16 @@ class vlc_stream_io_callback: public IOCallback
private:
stream_t
*
s
;
vlc_bool_t
mb_eof
;
vlc_bool_t
b_owner
;
public:
vlc_stream_io_callback
(
stream_t
*
);
vlc_stream_io_callback
(
stream_t
*
,
vlc_bool_t
);
virtual
~
vlc_stream_io_callback
()
{
if
(
b_owner
)
stream_Delete
(
s
);
}
virtual
uint32
read
(
void
*
p_buffer
,
size_t
i_size
);
virtual
void
setFilePointer
(
int64_t
i_offset
,
seek_mode
mode
=
seek_beginning
);
...
...
@@ -1394,7 +1401,7 @@ static int Open( vlc_object_t * p_this )
p_demux
->
pf_control
=
Control
;
p_demux
->
p_sys
=
p_sys
=
new
demux_sys_t
(
*
p_demux
);
p_io_callback
=
new
vlc_stream_io_callback
(
p_demux
->
s
);
p_io_callback
=
new
vlc_stream_io_callback
(
p_demux
->
s
,
VLC_FALSE
);
p_io_stream
=
new
EbmlStream
(
*
p_io_callback
);
if
(
p_io_stream
==
NULL
)
...
...
@@ -1471,7 +1478,7 @@ static int Open( vlc_object_t * p_this )
#endif
{
// test wether this file belongs to our family
vlc_stream_io_callback
*
p_file_io
=
new
vlc_stream_io_callback
(
stream_UrlNew
(
p_demux
,
s_filename
.
c_str
()));
vlc_stream_io_callback
*
p_file_io
=
new
vlc_stream_io_callback
(
stream_UrlNew
(
p_demux
,
s_filename
.
c_str
())
,
VLC_TRUE
);
EbmlStream
*
p_estream
=
new
EbmlStream
(
*
p_file_io
);
p_stream
=
p_sys
->
AnalyseAllSegmentsFound
(
p_estream
);
...
...
@@ -3260,9 +3267,10 @@ static int Demux( demux_t *p_demux)
/*****************************************************************************
* Stream managment
*****************************************************************************/
vlc_stream_io_callback
::
vlc_stream_io_callback
(
stream_t
*
s_
)
vlc_stream_io_callback
::
vlc_stream_io_callback
(
stream_t
*
s_
,
vlc_bool_t
b_owner_
)
{
s
=
s_
;
b_owner
=
b_owner_
;
mb_eof
=
VLC_FALSE
;
}
...
...
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