File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -795,7 +795,25 @@ int main(int argc, argv_t* argv[]) {
795
795
that variant stream.
796
796
*/
797
797
if (selected_medias .offset == 0 && !disable_autoselect ) {
798
+ const size_t offset = selected_streams .offset ;
798
799
800
+ for (index = 0 ; index < offset ; index ++ ) {
801
+ const struct M3U8Stream * const resource = selected_streams .items [index ];
802
+ const struct M3U8StreamItem * const item = m3u8stream_finditem (& stream , resource );
803
+ const struct M3U8VariantStream * const variant_stream = item -> item ;
804
+
805
+ if (variant_stream -> audio != NULL ) {
806
+ selected_streams .items [selected_streams .offset ++ ] = & variant_stream -> audio -> stream ;
807
+ }
808
+
809
+ if (variant_stream -> video != NULL ) {
810
+ selected_streams .items [selected_streams .offset ++ ] = & variant_stream -> video -> stream ;
811
+ }
812
+
813
+ if (variant_stream -> subtitles != NULL ) {
814
+ selected_streams .items [selected_streams .offset ++ ] = & variant_stream -> subtitles -> stream ;
815
+ }
816
+ }
799
817
}
800
818
}
801
819
You can’t perform that action at this time.
0 commit comments