[libaacs-devel] [PATCH] Fix endless loop in _record

2015-12-09 Thread Roland Fischer
In case of a corrupt file it could happen that len get 0 in _record and this results in an endless loop. Created an exit condition for this case and fixed related procedures too (they need to cope with the error-return-value from _record). Reason for change: https://github.com/OpenELEC/OpenELEC.tv/

[libaacs-devel] [PATCH] Correct debug-log in _find_config_entry

2015-12-09 Thread Roland Fischer
'discid' sent to BD_DEBUG has not been converted to string before and resulted in a broken output - corrected. --- src/libaacs/aacs.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/libaacs/aacs.c b/src/libaacs/aacs.c index ae85612..60e678f 100644 --- a/src/libaacs/a

[libaacs-devel] [PATCH] Always write logentry in case of corrupted disc

2015-12-09 Thread Roland Fischer
In case of a AACS_ERROR_CORRUPTED_DISC error always write a BD_DEBUG message at DBG_CRIT loglevel. --- src/libaacs/aacs.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/libaacs/aacs.c b/src/libaacs/aacs.c index 60e678f..1bd8ad5 100644 --- a/src/libaacs/aacs.c +++ b/src/

[libaacs-devel] [PATCH] Add processing for discs with Null-UnitKeyRo file

2015-12-09 Thread Roland Fischer
A few discs have an aacs folder with a unit_key_ro.inf file consisting only of NULL bytes and only unencrypted content in BDMV/STREAM directory. This case can be detected on their always identical discid value In case such a disc is deteced return AACS_SUCCESS to allow playback of disc. Reason of c