* 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:
@@ -111,7 +111,8 @@ NodeManager::InitCheck()
|
|||||||
void
|
void
|
||||||
NodeManager::SetPlayMode(int32 mode, bool continuePlaying)
|
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::run_mode runMode = mode > 0 ?
|
||||||
BMediaNode::B_DROP_DATA : BMediaNode::B_OFFLINE;
|
BMediaNode::B_DROP_DATA : BMediaNode::B_OFFLINE;
|
||||||
status_t ret = fMediaRoster->SetRunModeNode(fVideoConnection.consumer,
|
status_t ret = fMediaRoster->SetRunModeNode(fVideoConnection.consumer,
|
||||||
|
|||||||
Reference in New Issue
Block a user