-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bluray][simple menu] Search for a user provided list of playlists. #12537
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
regex handling looks correct
just a note: leading zeros are also counted for digit length
} | ||
|
||
uint8_t maxLines = 100; | ||
while ((maxLines > 0) && file.ReadString(buffer, 1024)) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
maxLines--; | ||
if (StringUtils::StartsWithNoCase(buffer, "playlists")) | ||
{ | ||
int pos = 0; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
xbmc/filesystem/BlurayDirectory.cpp
Outdated
if (StringUtils::StartsWithNoCase(buffer, "playlists")) | ||
{ | ||
int pos = 0; | ||
while ((pos = pl.RegFind(buffer, static_cast<uint32_t>(pos))) >= 0) |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
@koying |
Just not in the NDK, yet: android/ndk#82 |
Yes, that worked. Thx both of you |
This list has be be given in a file named disc.inf located at the root folder of the disc. The list has to be given in a line starting with "playlists", e.g., "playlists=1, 20, 300".
No description provided.