hlssink: m3u8 add EXT-X-ALLOW-CACHE

https://bugzilla.gnome.org/show_bug.cgi?id=689822
This commit is contained in:
Victor Gottardi 2012-11-06 10:17:19 -05:00 committed by Tim-Philipp Müller
parent 4fb227b340
commit e6f5c5674c

View file

@ -28,6 +28,7 @@
#define M3U8_HEADER_TAG "#EXTM3U\n" #define M3U8_HEADER_TAG "#EXTM3U\n"
#define M3U8_VERSION_TAG "#EXT-X-VERSION:%d\n" #define M3U8_VERSION_TAG "#EXT-X-VERSION:%d\n"
#define M3U8_ALLOW_CACHE_TAG "#EXT-X-ALLOW-CACHE:%s\n"
#define M3U8_TARGETDURATION_TAG "#EXT-X-TARGETDURATION:%d\n" #define M3U8_TARGETDURATION_TAG "#EXT-X-TARGETDURATION:%d\n"
#define M3U8_MEDIA_SEQUENCE_TAG "#EXT-X-MEDIA-SEQUENCE:%d\n" #define M3U8_MEDIA_SEQUENCE_TAG "#EXT-X-MEDIA-SEQUENCE:%d\n"
#define M3U8_DISCONTINUITY_TAG "#EXT-X-DISCONTINUITY\n" #define M3U8_DISCONTINUITY_TAG "#EXT-X-DISCONTINUITY\n"
@ -189,6 +190,9 @@ gst_m3u8_playlist_render (GstM3U8Playlist * playlist)
/* #EXT-X-VERSION */ /* #EXT-X-VERSION */
// g_string_append_printf (playlist->playlist_str, M3U8_VERSION_TAG, // g_string_append_printf (playlist->playlist_str, M3U8_VERSION_TAG,
// playlist->version); // playlist->version);
/* #EXT-X-ALLOW_CACHE */
g_string_append_printf (playlist->playlist_str, M3U8_ALLOW_CACHE_TAG,
playlist->allow_cache ? "YES" : "NO");
/* #EXT-X-MEDIA-SEQUENCE */ /* #EXT-X-MEDIA-SEQUENCE */
g_string_append_printf (playlist->playlist_str, M3U8_MEDIA_SEQUENCE_TAG, g_string_append_printf (playlist->playlist_str, M3U8_MEDIA_SEQUENCE_TAG,
playlist->sequence_number - playlist->entries->length); playlist->sequence_number - playlist->entries->length);