qtdemux: fix reverse playback of fragmented media
qtdemux: fix reverse playback of fragmented media

qtdemux creates a samples array and gets the timestamps for buffers by
accumulating their durations. When doing reverse playback of fragments,
accumulating samples will lead to wrong timestamps as the timestamps
should go decreasing from fragment to fragment and the accumulation
will produce wrong results.

In this case, when receiving a discont for fragmented reverse playback,
the previous samples information should be flushed before new data
is processed.

GStreamer/gst-plugins-good,StreamUtils/gst-plugins-good,vatavuserban/gst-plugins-good,ikonst/gst-plugins-good,chamois94/gst-plugins-good,GStreamer/gst-plugins-good,StreamUtils/gst-plugins-good,kittee/gst-plugins-good,ikonst/gst-plugins-good,chamois94/gst-plugins-good,shelsonjava/gst-plugins-good,pexip/gst-plugins-good,chamois94/gst-plugins-good,ikonst/gst-plugins-good,froggatt/gst-plugins-good-m,GrokImageCompression/gst-plugins-good,kittee/gst-plugins-good,Kurento/gst-plugins-good,rawoul/gst-plugins-good,rawoul/gst-plugins-good,pexip/gst-plugins-good,StreamUtils/gst-plugins-good,sebras/gst-plugins-good,Kurento/gst-plugins-good,pexip/gst-plugins-good,froggatt/gst-plugins-good-m,sebras/gst-plugins-good,vatavuserban/gst-plugins-good,GrokImageCompression/gst-plugins-good,Kurento/gst-plugins-good,stfl/gst-plugins-good,vatavuserban/gst-plugins-good,Kurento/gst-plugins-good,kittee/gst-plugins-good,kittee/gst-plugins-good,rawoul/gst-plugins-good,froggatt/gst-plugins-good-m,sebras/gst-plugins-good,hizukiayaka/gst-plugins-good,GrokImageCompression/gst-plugins-good,stfl/gst-plugins-good,hizukiayaka/gst-plugins-good,pexip/gst-plugins-good,sebras/gst-plugins-good,chamois94/gst-plugins-good,GStreamer/gst-plugins-good,vatavuserban/gst-plugins-good,shelsonjava/gst-plugins-good,hizukiayaka/gst-plugins-good,GrokImageCompression/gst-plugins-good,hizukiayaka/gst-plugins-good,Kurento/gst-plugins-good,ikonst/gst-plugins-good,froggatt/gst-plugins-good-m,pexip/gst-plugins-good,StreamUtils/gst-plugins-good,GStreamer/gst-plugins-good,shelsonjava/gst-plugins-good,rawoul/gst-plugins-good,shelsonjava/gst-plugins-good,stfl/gst-plugins-good,stfl/gst-plugins-good