[vlc-devel] [PATCH 9/9] mkv: add Segments from the same family to used_segments
Steve Lhomme
robux4 at videolabs.io
Tue Mar 15 15:46:02 CET 2016
it is needed by chapter codec commands that need to know about other segments
---
modules/demux/mkv/demux.cpp | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/modules/demux/mkv/demux.cpp b/modules/demux/mkv/demux.cpp
index 6feae50..78eb219 100644
--- a/modules/demux/mkv/demux.cpp
+++ b/modules/demux/mkv/demux.cpp
@@ -660,6 +660,17 @@ bool demux_sys_t::PreloadLinked()
used_segments.push_back( p_current_segment );
+ for ( i=1; i< opened_segments.size(); i++ )
+ {
+ /* add segments from the same family to used_segments */
+ if ( opened_segments[0]->SameFamily( *(opened_segments[i]) ) )
+ {
+ virtual_segment_c *p_virtual_segment = new (std::nothrow) virtual_segment_c( *(opened_segments[i]), opened_segments );
+ if ( p_virtual_segment != NULL )
+ used_segments.push_back( p_virtual_segment );
+ }
+ }
+
// publish all editions of all usable segment
for ( i=0; i< used_segments.size(); i++ )
{
--
2.7.2.windows.1
More information about the vlc-devel
mailing list