Fix race conditions after starting flag reset,
make sure play state callbacks are called and only called once.
[Fix] Use shared pointer for the player in CApplication, fix double PlayFile call crash.
Change return value of PlayFile/PlayStack to support cancel detection.
Revert "Fix compile of current master branch without PR2244 merged."

This reverts commit bb75ae7b1cce556a668d74c8310a5984ff69b77a.
Detect PlayFile cancel better, any pPlayer->CloseFile() will cancel playback.
Curl move header list into read state to support double state
Fix: now mp4 file on internet url can be played by dvdplayer by double session support of cache.
Also apply double cache for avi files.
When using double cache, do not increase the total memory cost.
Revert "[libdvd] - added missing patches"

This reverts commit 217532dfa495abd883d98b068394fe2452362274.
[libdvdread] Fix Playback of VIDEO_TS folders broken on SMB and NFS - thx @kraqh3d
[libdvd] update patch for libdvdread