File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -776,6 +776,7 @@ pub struct MediaContext {
776
776
pub mvex : Option < MovieExtendsBox > ,
777
777
pub psshs : TryVec < ProtectionSystemSpecificHeaderBox > ,
778
778
pub userdata : Option < Result < UserdataBox > > ,
779
+ #[ cfg( feature = "meta-xml" ) ]
779
780
pub metadata : Option < Result < MetadataBox > > ,
780
781
}
781
782
@@ -2321,6 +2322,7 @@ pub fn read_mp4<T: Read>(f: &mut T) -> Result<MediaContext> {
2321
2322
BoxType :: MovieBox => {
2322
2323
context = Some ( read_moov ( & mut b, context) ?) ;
2323
2324
}
2325
+ #[ cfg( feature = "meta-xml" ) ]
2324
2326
BoxType :: MetadataBox => {
2325
2327
if let Some ( ctx) = & mut context {
2326
2328
ctx. metadata = Some ( read_meta ( & mut b) ) ;
@@ -2371,6 +2373,7 @@ fn read_moov<T: Read>(f: &mut BMFFBox<T>, context: Option<MediaContext>) -> Resu
2371
2373
mut mvex,
2372
2374
mut psshs,
2373
2375
mut userdata,
2376
+ #[ cfg( feature = "meta-xml" ) ]
2374
2377
metadata,
2375
2378
} = context. unwrap_or_default ( ) ;
2376
2379
@@ -2414,6 +2417,7 @@ fn read_moov<T: Read>(f: &mut BMFFBox<T>, context: Option<MediaContext>) -> Resu
2414
2417
mvex,
2415
2418
psshs,
2416
2419
userdata,
2420
+ #[ cfg( feature = "meta-xml" ) ]
2417
2421
metadata,
2418
2422
} )
2419
2423
}
You can’t perform that action at this time.
0 commit comments