From 84007236ce796615a8e74432aad110164b23b8ec Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Mon, 6 Apr 2009 14:08:55 +0200 Subject: replace assert by ASSERT, so a proper log message is generated --- lib/service/servicexine.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'lib/service/servicexine.cpp') diff --git a/lib/service/servicexine.cpp b/lib/service/servicexine.cpp index 47be4d42..44e6a6e0 100644 --- a/lib/service/servicexine.cpp +++ b/lib/service/servicexine.cpp @@ -175,8 +175,8 @@ RESULT eServiceXine::start() if (m_state == stError) return -1; - assert(m_state == stIdle); - assert(stream); + ASSERT(m_state == stIdle); + ASSERT(stream); if (!xine_open(stream, m_filename.c_str())) { @@ -201,8 +201,8 @@ RESULT eServiceXine::stop() if (m_state == stError) return -1; - assert(m_state != stIdle); - assert(stream); + ASSERT(m_state != stIdle); + ASSERT(stream); if (m_state == stStopped) return -1; printf("Xine: %s stop\n", m_filename.c_str()); @@ -259,7 +259,7 @@ RESULT eServiceXine::getLength(pts_t &pts) pts = -1; if (m_state == stError) return 1; - assert(stream); + ASSERT(stream); int pos_stream, pos_time, length_time; @@ -293,7 +293,7 @@ RESULT eServiceXine::getPlayPosition(pts_t &pts) pts = -1; if (m_state == stError) return 1; - assert(stream); + ASSERT(stream); int pos_stream, pos_time, length_time; -- cgit v1.2.3