Additional comments and code cleanup.

This commit is contained in:
mark 2006-12-07 08:17:18 +00:00
parent f1c7e18c45
commit eb69bd44c8
1 changed files with 5 additions and 4 deletions

View File

@ -218,7 +218,7 @@ GstreamerPlayer :: fireOnStopEvent(gpointer self) throw (
{ {
DEBUG_BLOCK DEBUG_BLOCK
GstreamerPlayer * player = (GstreamerPlayer*) self; GstreamerPlayer* const player = (GstreamerPlayer*) self;
ListenerVector::iterator it = player->m_listeners.begin(); ListenerVector::iterator it = player->m_listeners.begin();
ListenerVector::iterator end = player->m_listeners.end(); ListenerVector::iterator end = player->m_listeners.end();
@ -243,7 +243,7 @@ GstreamerPlayer :: eosEventHandler(GstElement * element,
{ {
DEBUG_BLOCK DEBUG_BLOCK
GstreamerPlayer * player = (GstreamerPlayer*) self; GstreamerPlayer* const player = (GstreamerPlayer*) self;
gst_element_set_eos(player->m_pipeline); gst_element_set_eos(player->m_pipeline);
@ -389,14 +389,14 @@ GstreamerPlayer :: open(const std::string fileUrl)
// connect the eos signal handler // connect the eos signal handler
g_signal_connect(m_decoder, "eos", G_CALLBACK(eosEventHandler), this); g_signal_connect(m_decoder, "eos", G_CALLBACK(eosEventHandler), this);
m_preloadUrl.clear();
if (gst_element_set_state(m_pipeline,GST_STATE_PAUSED) == GST_STATE_FAILURE) { if (gst_element_set_state(m_pipeline,GST_STATE_PAUSED) == GST_STATE_FAILURE) {
close(); close();
// the error is most probably caused by not being able to open // the error is most probably caused by not being able to open
// the audio device (as it might be blocked by an other process // the audio device (as it might be blocked by an other process
throw std::runtime_error("can't open audio device " + m_audioDevice); throw std::runtime_error("can't open audio device " + m_audioDevice);
} }
m_preloadUrl.clear();
} }
@ -720,6 +720,7 @@ void Preloader::signal(int) throw()
{} {}
// TODO This should be implemented by adding a "abort" property to the minimalaudiosmil element.
void Preloader::stop() throw() void Preloader::stop() throw()
{} {}