extensions.push_back("dat");
extensions.push_back("flac");
extensions.push_back("mp4");
+ extensions.push_back("mov");
extensions.push_back("m4a");
sc->addServiceFactory(eServiceFactoryMP3::id, this, extensions);
}
sourceinfo.containertype = ctAVI;
sourceinfo.is_video = TRUE;
}
- else if ( strcasecmp(ext, ".mp4") == 0 )
+ else if ( strcasecmp(ext, ".mp4") == 0 || strcasecmp(ext, ".mov") == 0)
{
sourceinfo.containertype = ctMP4;
sourceinfo.is_video = TRUE;
RESULT eServiceMP3::start()
{
- assert(m_state == stIdle);
+ ASSERT(m_state == stIdle);
m_state = stRunning;
if (m_gst_pipeline)
RESULT eServiceMP3::stop()
{
- assert(m_state != stIdle);
+ ASSERT(m_state != stIdle);
if (m_state == stStopped)
return -1;
eDebug("MP3: %s stop\n", m_filename.c_str());
// iPausableService
RESULT eServiceMP3::pause()
{
+ if (m_state != stRunning)
+ return;
+
if (!m_gst_pipeline)
return -1;
GstStateChangeReturn res = gst_element_set_state(m_gst_pipeline, GST_STATE_PAUSED);
RESULT eServiceMP3::unpause()
{
+ if (m_state != stRunning)
+ return;
+
if (!m_gst_pipeline)
return -1;