Add useful debug message.

This commit is contained in:
mark 2006-11-22 08:51:08 +00:00
parent f6489b70b8
commit b7a8bbe1d1
1 changed files with 2 additions and 1 deletions

View File

@ -392,12 +392,13 @@ GstreamerPlayer :: open(const std::string fileUrl)
// Due to bugs in the minimalaudiosmil element, it does not currently work with decodebin.
// Therefore we instantiate it manually if the file has the .smil extension.
if (isSmil) {
debug() << "SMIL file detected." << endl;
if (isPreloaded) {
debug() << "Using preloaded SMIL element instance." << endl;
m_decoder = m_preloadDecoder;
gst_element_link(m_decoder, m_audioconvert);
}
else {
debug() << "SMIL file detected." << endl;
m_decoder = gst_element_factory_make("minimalaudiosmil", NULL);
gst_element_link_many(m_filesrc, m_decoder, m_audioconvert, NULL);
}