Add some debug output.
This commit is contained in:
parent
2eb30be97a
commit
6b4bd54191
|
@ -41,6 +41,8 @@
|
||||||
|
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
|
||||||
|
#define DEBUG_PREFIX "Scheduler"
|
||||||
|
#include "LiveSupport/Core/Debug.h"
|
||||||
|
|
||||||
#include "LiveSupport/Core/TimeConversion.h"
|
#include "LiveSupport/Core/TimeConversion.h"
|
||||||
#include "LiveSupport/Core/SessionId.h"
|
#include "LiveSupport/Core/SessionId.h"
|
||||||
|
@ -93,6 +95,8 @@ PlaylistEvent :: PlaylistEvent(
|
||||||
void
|
void
|
||||||
PlaylistEvent :: initialize(void) throw (std::exception)
|
PlaylistEvent :: initialize(void) throw (std::exception)
|
||||||
{
|
{
|
||||||
|
DEBUG_BLOCK
|
||||||
|
|
||||||
std::cerr << "PlaylistEvent :: initialize BEGIN\n";
|
std::cerr << "PlaylistEvent :: initialize BEGIN\n";
|
||||||
if (state != created) {
|
if (state != created) {
|
||||||
throw std::logic_error("PlaylistEvent in bad state");
|
throw std::logic_error("PlaylistEvent in bad state");
|
||||||
|
@ -145,6 +149,8 @@ std::cerr << "PlaylistEvent :: deInitialize END\n";
|
||||||
void
|
void
|
||||||
PlaylistEvent :: start(void) throw ()
|
PlaylistEvent :: start(void) throw ()
|
||||||
{
|
{
|
||||||
|
DEBUG_BLOCK
|
||||||
|
|
||||||
std::cerr << "PlaylistEvent :: start BEGIN\n";
|
std::cerr << "PlaylistEvent :: start BEGIN\n";
|
||||||
if (state != initialized) {
|
if (state != initialized) {
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
|
@ -174,6 +180,8 @@ std::cerr << "PlaylistEvent :: audio player started\n";
|
||||||
void
|
void
|
||||||
PlaylistEvent :: stop(void) throw ()
|
PlaylistEvent :: stop(void) throw ()
|
||||||
{
|
{
|
||||||
|
DEBUG_BLOCK
|
||||||
|
|
||||||
std::cerr << "PlaylistEvent :: stop BEGIN\n";
|
std::cerr << "PlaylistEvent :: stop BEGIN\n";
|
||||||
if (state != running) {
|
if (state != running) {
|
||||||
// TODO: handle error?
|
// TODO: handle error?
|
||||||
|
|
Loading…
Reference in New Issue