Better debug messages.
This commit is contained in:
parent
b5abe48ea6
commit
e306a94e54
|
@ -127,6 +127,7 @@ PlaylistEvent :: deInitialize(void) throw ()
|
||||||
DEBUG_BLOCK
|
DEBUG_BLOCK
|
||||||
|
|
||||||
if (state != stopped) {
|
if (state != stopped) {
|
||||||
|
error() << "::deInitialize() - ERROR: STATE IS NOT STOPPED! Aborting." << endl;
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -151,8 +152,8 @@ PlaylistEvent :: start(void) throw ()
|
||||||
DEBUG_BLOCK
|
DEBUG_BLOCK
|
||||||
|
|
||||||
if (state != initialized) {
|
if (state != initialized) {
|
||||||
|
error() << "::start() - ERROR: STATE IS NOT INITIALIZED! Aborting." << endl;
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
error() << "Not initialized. Aborting." << endl;
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -181,6 +182,7 @@ PlaylistEvent :: stop(void) throw ()
|
||||||
DEBUG_BLOCK
|
DEBUG_BLOCK
|
||||||
|
|
||||||
if (state != running) {
|
if (state != running) {
|
||||||
|
error() << "::stop() - ERROR: STATE IS NOT RUNNING! Aborting." << endl;
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue