libdvdcss: fix position after partial read in libc_read
[osx] - mark removable shares which are either have DVD or CD media in it as SOURCE_TYPE_DVD so the audio cd rip context menu is visible for it
Revert "[vfs] [posix] SMBFile: fix reading files opened with READ_TRUNCATED flag"

This reverts commit b202cd09426d1ce1e8921b827a84476472cf35fe.

This change is invalid. The whole point of READ_TRUNCATED is to allow
lower layer file systems to return any amount of data less than or
equal to requested size. This is for efficiency reasons. After this
change each request of X bytes from xbmc would result in multiple
network roundtrips
smb: set workgroup using standard api

smb.conf file is only written once, thus changes in GUI will not have any effect
smb: don't add : for empty password

libsmbclient parser can't handle that
smb: drop try/catch of exceptions from C api

These won't throw catchable exceptions
smb: eliminate smb.Init() calls in non static functions

Init is called on CFile constructor.
smb: factor out stat to __stat64 conversion

We have all other conversions in CUtil so put this one there as well
smb: drop old (unused) purge code

This was only needed before libsmbclient kept to one session per server.
smb: use utility function to convert time_t to local file time
smb: make sure we deinit samba before global destructor

Library can have been unloaded by that point
url: share name should always be updated

Sharename is used in url authentication logic
smb: eliminate  unused while loop in OpenDir

We loop this at outer level now
Merge pull request #5738 from Memphiz/osxdvd

[osx] - mark removable shares which are either have DVD or CD media in i...
[pvr] fix marking recordings as watched or unwatched (fixes #15118)
[pvr] fix bug where the selected item didn't change to the next one
after an item has been marked as watched/unwatched

This emulates the behavior in the video library
[pvr] fixed folder watched icon appearing only after the folder had
been entered once

This stuff is handled transparently by the list, no need to attempt any
hacks
[pvr] always update metadata (i.e. play count) for items, not just
the first time an item from that particular folder is encountered
[pvr] hopefully fix the folder watched overlay once and for all. We
now start out by assuming all folders are watched, then as we encounter
unwatched recordings we remember those folders and unmark them at the
end of the method
libdvdcss: better handle partial read in libc_read