1
0
Fork 0
mirror of https://github.com/sile/hls_m3u8.git synced 2024-05-18 16:28:20 +00:00
hls_m3u8/src
npajkovsky 34df16f7d6
fix EXT-X-MEDIA DEFAULT=yes wrt AUTOSELECT (#1)
* fix EXT-X-MEDIA DEFAULT=yes wrt AUTOSELECT

In 4.3.4.1. EXT-X-MEDIA section about AUTOSELECT is written

   If the AUTOSELECT attribute is present, its value MUST be YES if
   the value of the DEFAULT attribute is YES.

That means, that if DEFAULT is YES and AUTOSELECT is *not present*, it
ok.

Before the patch, incorrect error is emitted

  If `DEFAULT` is true, `AUTOSELECT` has to be true too, Default:
  Some(true), Autoselect: None!

Signed-off-by: Nikola Pajkovsky <nikola.pajkovsky@livesporttv.cz>

* update src/tags/master_playlist/media.rs

Co-authored-by: Nikola Pajkovsky <nikola.pajkovsky@livesporttv.cz>
Co-authored-by: Lucas <24826124+Luro02@users.noreply.github.com>
2020-04-09 14:12:16 +02:00
..
tags fix EXT-X-MEDIA DEFAULT=yes wrt AUTOSELECT (#1) 2020-04-09 14:12:16 +02:00
types fix rust_2018_idioms 2020-04-09 09:29:29 +02:00
attribute.rs use chars instead of bytes in the attribute parser 2020-03-16 11:17:52 +01:00
error.rs fix rust_2018_idioms 2020-04-09 09:29:29 +02:00
lib.rs document crate features 2020-04-09 09:29:29 +02:00
line.rs minor code improvements 2020-03-29 12:58:43 +02:00
master_playlist.rs fix rust_2018_idioms 2020-04-09 09:29:29 +02:00
media_playlist.rs fix rust_2018_idioms 2020-04-09 09:29:29 +02:00
media_segment.rs fix rust_2018_idioms 2020-04-09 09:29:29 +02:00
traits.rs some minor fixes 2020-03-25 14:11:11 +01:00
utils.rs improve readability 2020-03-28 10:46:07 +01:00