hlsdemux: Don't use approximate duration for fragment buffer pts
authorThomas Bluemel <tbluemel@control4.com>
Fri, 20 Jun 2014 18:38:59 +0000 (12:38 -0600)
committerThiago Santos <thiagoss@osg.samsung.com>
Wed, 7 Jan 2015 12:30:40 +0000 (09:30 -0300)
commitcd6069f5af03b35fd0182ac9dfac3b4c0eccbe4d
tree6625fb68fe42a33f512eefa651513dd6ac00ce39
parentc1251ab861ff2fe688d87820109280034438d9a8
hlsdemux: Don't use approximate duration for fragment buffer pts

The duration values in playlists are approximate only, and for
playlist versions 2 and older they are only rounded integer values.
They cannot be used to timestamp buffers.  This resulted in playback
gaps and skips because the actual duration of fragments is slightly
different.  The solution is to only set the pts of the very first
buffer processed, not for each fragment.
ext/hls/gsthlsdemux.c
ext/hls/gsthlsdemux.h