* Don't try to change the run-mode of the consumer
if it has not been created yet. (Avoids a debug message only.) git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@38719 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
3a8771cf17
commit
9a52ead33e
@ -111,7 +111,8 @@ NodeManager::InitCheck()
|
||||
void
|
||||
NodeManager::SetPlayMode(int32 mode, bool continuePlaying)
|
||||
{
|
||||
if (fMediaRoster != NULL && fMediaRoster->Lock()) {
|
||||
if (fVideoConsumer != NULL && fMediaRoster != NULL
|
||||
&& fMediaRoster->Lock()) {
|
||||
BMediaNode::run_mode runMode = mode > 0 ?
|
||||
BMediaNode::B_DROP_DATA : BMediaNode::B_OFFLINE;
|
||||
status_t ret = fMediaRoster->SetRunModeNode(fVideoConnection.consumer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user