-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
[streamdetails] Add SubtitleCodec and SubtitleType #25023
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -86,6 +86,8 @@ class CStreamDetailSubtitle final : public CStreamDetail | |
void Serialize(CVariant& value) const override; | ||
bool IsWorseThan(const CStreamDetail &that) const override; | ||
|
||
std::string m_codec; | ||
std::string m_type; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Name: "type" is a generic word, maybe "location" or "storage" or "storage type" is better? type; non-localized strings "muxed" or "external" can work for storage but are not great for display to the user and I don't think translation should be up to the skin. I don't know if there could ever be more values than internal/external > a bool could be enough. Or a number for an enum. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Subtitle Type cannot be a boolean because this property will be used to know if there is or not a subtitle - and if you set it to false, what would that mean ? no subtitle or external one?. Codec cannot be used for this, because it is only retrieved if the subtitle is internal. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The building has missed, any idea why ? I don't have any authorization to look at it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah I'll get back to this one once I free up my queue :') |
||
std::string m_strLanguage; | ||
}; | ||
|
||
|
@@ -124,6 +126,8 @@ class CStreamDetails final : public IArchivable, public ISerializable | |
int GetAudioChannels(int idx = 0) const; | ||
|
||
std::string GetSubtitleLanguage(int idx = 0) const; | ||
std::string GetSubtitleCodec(int idx = 0) const; | ||
std::string GetSubtitleType(int idx = 0) const; | ||
|
||
void AddStream(CStreamDetail *item); | ||
void Reset(void); | ||
|
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.
And the reverse in the function below?