Add useful debug message.
This commit is contained in:
parent
f6489b70b8
commit
b7a8bbe1d1
1 changed files with 2 additions and 1 deletions
|
@ -392,12 +392,13 @@ GstreamerPlayer :: open(const std::string fileUrl)
|
||||||
// Due to bugs in the minimalaudiosmil element, it does not currently work with decodebin.
|
// 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.
|
// Therefore we instantiate it manually if the file has the .smil extension.
|
||||||
if (isSmil) {
|
if (isSmil) {
|
||||||
debug() << "SMIL file detected." << endl;
|
|
||||||
if (isPreloaded) {
|
if (isPreloaded) {
|
||||||
|
debug() << "Using preloaded SMIL element instance." << endl;
|
||||||
m_decoder = m_preloadDecoder;
|
m_decoder = m_preloadDecoder;
|
||||||
gst_element_link(m_decoder, m_audioconvert);
|
gst_element_link(m_decoder, m_audioconvert);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
debug() << "SMIL file detected." << endl;
|
||||||
m_decoder = gst_element_factory_make("minimalaudiosmil", NULL);
|
m_decoder = gst_element_factory_make("minimalaudiosmil", NULL);
|
||||||
gst_element_link_many(m_filesrc, m_decoder, m_audioconvert, NULL);
|
gst_element_link_many(m_filesrc, m_decoder, m_audioconvert, NULL);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue