RESULT eServiceMP3::start()
{
	if (m_state != stIdle)
	{
		eDebug("[eServiceMP3::%s] m_state != stIdle", __func__);
		return -1;
	}

	if (player && player->output && player->playback)
	{
		m_state = stRunning;

		player->output->Command(player, OUTPUT_OPEN, NULL);
		player->playback->Command(player, PLAYBACK_PLAY, NULL);
		m_event(this, evStart);
		m_event(this, evGstreamerPlayStarted);
		updateEpgCacheNowNext();
		eDebug("[eServiceMP3::%s] start %s", __func__, m_ref.path.c_str());

		return 0;
	}

	eDebug("[eServiceMP3::%s] ERROR in start %s", __func__, m_ref.path.c_str());
	return -1;
}
Exemplo n.º 2
0
RESULT eServiceMP3::start()
{
//	ASSERT(m_state == stIdle); openpliPC

	m_state = stRunning;
	/*if (m_gst_playbin) openpliPC
	{
		eDebug("eServiceMP3::starting pipeline");
		gst_element_set_state (m_gst_playbin, GST_STATE_PLAYING);
		updateEpgCacheNowNext();
	}*/

	updateEpgCacheNowNext();
	m_event(this, evStart);

	return 0;
}