BMediaOutput: API cleanup
This commit is contained in:
@@ -153,8 +153,8 @@ class BMediaOutput : public virtual BMediaConnection {
|
||||
public:
|
||||
BMediaOutput();
|
||||
|
||||
void SetOutputEnabled(bool enabled);
|
||||
bool IsOutputEnabled() const;
|
||||
void SetEnabled(bool enabled);
|
||||
bool IsEnabled() const;
|
||||
|
||||
protected:
|
||||
// Callbacks
|
||||
@@ -173,7 +173,7 @@ protected:
|
||||
private:
|
||||
media_output MediaOutput() const;
|
||||
|
||||
bool fOutputEnabled;
|
||||
bool fEnabled;
|
||||
|
||||
virtual void _ReservedMediaOutput0();
|
||||
virtual void _ReservedMediaOutput1();
|
||||
|
||||
@@ -482,7 +482,7 @@ BMediaClientNode::EnableOutput(const media_source& source,
|
||||
|
||||
BMediaOutput* conn = fOwner->FindOutput(source);
|
||||
if (conn != NULL) {
|
||||
conn->fOutputEnabled = enabled;
|
||||
conn->SetEnabled(enabled);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -274,11 +274,18 @@ BMediaOutput::BMediaOutput()
|
||||
|
||||
|
||||
bool
|
||||
BMediaOutput::IsOutputEnabled() const
|
||||
BMediaOutput::IsEnabled() const
|
||||
{
|
||||
CALLED();
|
||||
|
||||
return fOutputEnabled;
|
||||
return fEnabled;
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
BMediaOutput::SetEnabled(bool enabled)
|
||||
{
|
||||
fEnabled = enabled;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user