diff --git a/campcaster/src/modules/playlistExecutor/include/LiveSupport/PlaylistExecutor/AudioPlayerEventListener.h b/campcaster/src/modules/playlistExecutor/include/LiveSupport/PlaylistExecutor/AudioPlayerEventListener.h index d0d5b61e1..4c64c40af 100644 --- a/campcaster/src/modules/playlistExecutor/include/LiveSupport/PlaylistExecutor/AudioPlayerEventListener.h +++ b/campcaster/src/modules/playlistExecutor/include/LiveSupport/PlaylistExecutor/AudioPlayerEventListener.h @@ -83,9 +83,11 @@ class AudioPlayerEventListener * Catch the event when playing has stopped. * This will happen probably due to the fact that the * audio clip has been played to its end. + * + * @param errorMessage is a 0 pointer if the player stopped normally */ virtual void - onStop(void) throw () = 0; + onStop(Ptr::Ref errorMessage) throw () = 0; }; diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.cxx b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.cxx index 5f273368a..2718c23c3 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.cxx +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.cxx @@ -622,7 +622,7 @@ GstreamerPlayerTest :: eventListenerOnStopTest(void) * Another, more realistic test of the event listener mechanism. *----------------------------------------------------------------------------*/ void -GstreamerPlayerTest :: onStop(void) +GstreamerPlayerTest :: onStop(Ptr::Ref errorMessage) throw () { if (!startNewClipFlag) { diff --git a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.h b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.h index f28f2480f..667ecdb39 100644 --- a/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.h +++ b/campcaster/src/modules/playlistExecutor/src/GstreamerPlayerTest.h @@ -244,9 +244,12 @@ class GstreamerPlayerTest : public CPPUNIT_NS::TestFixture, /** * Event handler for the "player has stopped" event. + * + * @param errorMessage is a 0 pointer if the player stopped normally */ virtual void - onStop(void) throw (); + onStop(Ptr::Ref errorMessage) + throw (); }; diff --git a/campcaster/src/modules/playlistExecutor/src/TestEventListener.h b/campcaster/src/modules/playlistExecutor/src/TestEventListener.h index 13cc65edf..d67233444 100644 --- a/campcaster/src/modules/playlistExecutor/src/TestEventListener.h +++ b/campcaster/src/modules/playlistExecutor/src/TestEventListener.h @@ -92,9 +92,11 @@ class TestEventListener : public AudioPlayerEventListener * Catch the event when playing has stopped. * This will happen probably due to the fact that the * audio clip has been played to its end. + * + * @param errorMessage is a 0 pointer if the player stopped normally */ virtual void - onStop(void) throw () + onStop(Ptr::Ref errorMessage) throw () { stopFlag = true; }