Slightly more reliable implementation by not relying on errno
Bugfix: Make library sounds works again by opening movie in playback (read-only) mode.