filesrc: laptop mode for playback, optimise file access with posix_fadvise()
Submitted by Krešimir Tonković
Link to original bug (#532307)
Description
totem/gstreamer could improve laptop battery time by reading ahead the movie into memory and allowing the operating system to shut down the disk/dvd drive. This is not the same as prebuffering because there is no reasom not to start playing the movie immediately. Furthermore, totem could detect if the laptop is on battery or a/c power, and do this only in battery mode.