Skip to content
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

videodb: avoid an empty entry in string arrays #6019

Merged

Conversation

Montellese
Copy link
Member

When working on my media import stuff I noticed that we fill in std::vector<std::string> members of CVideoInfoTag with an empty string element instead of nothing if the value of the members is empty. So if we retrieve a movie without any genres the result will be that CVideoInfoTag::m_genre will contain a single empty string in the vector instead of simply being empty.

I've been using this since the very beginning of my media import work and haven't seen any fallout but it's very difficult to determine if something is relying on the vector not being empty.

@Montellese Montellese added the Type: Improvement non-breaking change which improves existing functionality label Dec 23, 2014
@Montellese Montellese added this to the Helix 15.0-alpha1 milestone Jan 7, 2015
Montellese added a commit that referenced this pull request Jan 7, 2015
…rrays

videodb: avoid an empty entry in string arrays
@Montellese Montellese merged commit 85b7aea into xbmc:master Jan 7, 2015
@Montellese Montellese deleted the videodb_avoid_empty_string_arrays branch January 7, 2015 07:59
phil65 pushed a commit to phil65/xbmc that referenced this pull request Jan 10, 2015
…ng_arrays

videodb: avoid an empty entry in string arrays
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement non-breaking change which improves existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant