Add error message.
This commit is contained in:
parent
26c9566bf1
commit
426b40f2ce
|
@ -124,7 +124,7 @@ PlaylistEvent :: initialize(void) throw (std::exception)
|
||||||
void
|
void
|
||||||
PlaylistEvent :: deInitialize(void) throw ()
|
PlaylistEvent :: deInitialize(void) throw ()
|
||||||
{
|
{
|
||||||
//DEBUG_BLOCK
|
DEBUG_BLOCK
|
||||||
|
|
||||||
if (state != stopped) {
|
if (state != stopped) {
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
|
@ -148,10 +148,11 @@ PlaylistEvent :: deInitialize(void) throw ()
|
||||||
void
|
void
|
||||||
PlaylistEvent :: start(void) throw ()
|
PlaylistEvent :: start(void) throw ()
|
||||||
{
|
{
|
||||||
//DEBUG_BLOCK
|
DEBUG_BLOCK
|
||||||
|
|
||||||
if (state != initialized) {
|
if (state != initialized) {
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
|
error() << "Not initialized. Aborting." << endl;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -177,7 +178,7 @@ PlaylistEvent :: start(void) throw ()
|
||||||
void
|
void
|
||||||
PlaylistEvent :: stop(void) throw ()
|
PlaylistEvent :: stop(void) throw ()
|
||||||
{
|
{
|
||||||
//DEBUG_BLOCK
|
DEBUG_BLOCK
|
||||||
|
|
||||||
if (state != running) {
|
if (state != running) {
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
|
|
Loading…
Reference in New Issue