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
1a12bcd9
Commit
1a12bcd9
authored
Apr 05, 2005
by
Steve Lhomme
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mkv.cpp: the return of the family preloading
parent
fad12b2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
26 deletions
+5
-26
modules/demux/mkv.cpp
modules/demux/mkv.cpp
+5
-26
No files found.
modules/demux/mkv.cpp
View file @
1a12bcd9
...
@@ -618,8 +618,6 @@ public:
...
@@ -618,8 +618,6 @@ public:
std
::
vector
<
matroska_segment_t
*>
segments
;
std
::
vector
<
matroska_segment_t
*>
segments
;
demux_sys_t
&
sys
;
demux_sys_t
&
sys
;
void
PreloadFamily
(
const
matroska_segment_t
&
segment
);
};
};
class
demux_sys_t
class
demux_sys_t
...
@@ -663,7 +661,7 @@ public:
...
@@ -663,7 +661,7 @@ public:
float
f_duration
;
float
f_duration
;
matroska_segment_t
*
FindSegment
(
const
EbmlBinary
&
uid
)
const
;
matroska_segment_t
*
FindSegment
(
const
EbmlBinary
&
uid
)
const
;
void
PreloadFamily
(
);
void
PreloadFamily
(
const
matroska_segment_t
&
of_segment
);
void
PreloadLinked
(
matroska_segment_t
*
p_segment
);
void
PreloadLinked
(
matroska_segment_t
*
p_segment
);
bool
PreparePlayback
(
);
bool
PreparePlayback
(
);
matroska_stream_t
*
AnalyseAllSegmentsFound
(
EbmlStream
*
p_estream
);
matroska_stream_t
*
AnalyseAllSegmentsFound
(
EbmlStream
*
p_estream
);
...
@@ -803,7 +801,7 @@ static int Open( vlc_object_t * p_this )
...
@@ -803,7 +801,7 @@ static int Open( vlc_object_t * p_this )
}
}
}
}
p_sys
->
PreloadFamily
(
);
p_sys
->
PreloadFamily
(
*
p_segment
);
p_sys
->
PreloadLinked
(
p_segment
);
p_sys
->
PreloadLinked
(
p_segment
);
if
(
!
p_sys
->
PreparePlayback
(
)
)
if
(
!
p_sys
->
PreparePlayback
(
)
)
{
{
...
@@ -3394,32 +3392,13 @@ const chapter_item_t *chapter_item_t::FindTimecode( mtime_t i_user_timecode ) co
...
@@ -3394,32 +3392,13 @@ const chapter_item_t *chapter_item_t::FindTimecode( mtime_t i_user_timecode ) co
return
psz_result
;
return
psz_result
;
}
}
void
demux_sys_t
::
PreloadFamily
(
)
void
demux_sys_t
::
PreloadFamily
(
const
matroska_segment_t
&
of_segment
)
{
/* TODO enable family handling again
matroska_stream_t *p_stream = Stream();
if ( p_stream )
{
matroska_segment_t *p_segment = p_stream->Segment();
if ( p_segment )
{
for (size_t i=0; i<streams.size(); i++)
{
streams[i]->PreloadFamily( *p_segment );
}
}
}
*/
}
void
matroska_stream_t
::
PreloadFamily
(
const
matroska_segment_t
&
of_segment
)
{
{
for
(
size_t
i
=
0
;
i
<
segments
.
size
();
i
++
)
for
(
size_t
i
=
0
;
i
<
opened_
segments
.
size
();
i
++
)
{
{
segments
[
i
]
->
PreloadFamily
(
of_segment
);
opened_
segments
[
i
]
->
PreloadFamily
(
of_segment
);
}
}
}
}
bool
matroska_segment_t
::
PreloadFamily
(
const
matroska_segment_t
&
of_segment
)
bool
matroska_segment_t
::
PreloadFamily
(
const
matroska_segment_t
&
of_segment
)
{
{
if
(
b_preloaded
)
if
(
b_preloaded
)
...
...
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