From 9a52ead33e3432bc2afc0d215befca1d34868843 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 19 Sep 2010 12:02:47 +0000 Subject: [PATCH] * 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 --- src/apps/mediaplayer/media_node_framework/NodeManager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/apps/mediaplayer/media_node_framework/NodeManager.cpp b/src/apps/mediaplayer/media_node_framework/NodeManager.cpp index 8c771836c4..0e976b617b 100644 --- a/src/apps/mediaplayer/media_node_framework/NodeManager.cpp +++ b/src/apps/mediaplayer/media_node_framework/NodeManager.cpp @@ -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,