extensions.push_back("3gp");
extensions.push_back("3g2");
extensions.push_back("dts");
+ extensions.push_back("wmv");
+ extensions.push_back("asf");
+ extensions.push_back("wma");
sc->addServiceFactory(eServiceFactoryMP3::id, this, extensions);
}
uri = g_filename_to_uri(filename, NULL, NULL);
- eDebug("eServiceMP3::playbin2 uri=%s", uri);
+ //eDebug("eServiceMP3::playbin2 uri=%s", uri);
+ eDebug("eServiceMP3::playbin2");
m_gst_playbin = gst_element_factory_make("playbin2", "playbin");
if (!m_gst_playbin)
//GST_DEBUG_BIN_TO_DOT_FILE(GST_BIN(m_gst_playbin),GST_DEBUG_GRAPH_SHOW_ALL,"e2-playbin");
- eDebug("eServiceMP3::stop %s", m_ref.path.c_str());
+ //eDebug("eServiceMP3::stop %s", m_ref.path.c_str());
+ eDebug("eServiceMP3::stop service..");
gst_element_set_state(m_gst_playbin, GST_STATE_NULL);
m_state = stStopped;
subtype_t type = stUnknown;
GstCaps* caps = gst_pad_get_negotiated_caps(pad);
+ if (!caps && !g_codec)
+ {
+ caps = gst_pad_get_allowed_caps(pad);
+ }
+
if ( caps )
{
GstStructure* str = gst_caps_get_structure(caps, 0);