*Resumes automatically playback positions of files.
*Restores playlist items of last session if current playlist is empty.
*Starts last played file when activated (autostart-pause and deactivation of this feature is also possible by tweaking).
Activate "Progress" under View in the menu bar.
Save the source in the file progress.lua in the following folder (create it if necessary):
Then, restart vlc.
Tested only on Ubuntu with vlc 2.1.2
*Functionality might be truncated if the default path to the database file contains exotic characters.
**Perhaps, this can be cured by setting DATA_FD (at the top of the script!) to a path (pointing to an existing directory with correct permissions) not containing exotic characters, e.g. DATA_FD = "c:\\bla" (\\ will be interpreted as \).