src/3rdparty/phonon/gstreamer/mediaobject.cpp
changeset 37 758a864f9613
parent 30 5dc02b23752f
equal deleted inserted replaced
36:ef0373b55136 37:758a864f9613
   217         gst_install_plugins_context_free ( ctx );
   217         gst_install_plugins_context_free ( ctx );
   218 
   218 
   219         if ( status != GST_INSTALL_PLUGINS_STARTED_OK )
   219         if ( status != GST_INSTALL_PLUGINS_STARTED_OK )
   220         {
   220         {
   221             if( status == GST_INSTALL_PLUGINS_HELPER_MISSING )
   221             if( status == GST_INSTALL_PLUGINS_HELPER_MISSING )
   222                 setError(QString(tr("Missing codec helper script assistant.")), Phonon::FatalError );
   222                 setError(tr("Missing codec helper script assistant."), Phonon::FatalError );
   223             else
   223             else
   224                 setError(QString(tr("Plugin codec installation failed for codec: %0"))
   224                 setError(tr("Plugin codec installation failed for codec: %0")
   225                         .arg(m_missingCodecs[0].split("|")[3]), error);
   225                         .arg(m_missingCodecs[0].split("|")[3]), error);
   226         }
   226         }
   227         m_missingCodecs.clear();
   227         m_missingCodecs.clear();
   228 #else
   228 #else
   229         QString codecs = m_missingCodecs.join(", ");
   229         QString codecs = m_missingCodecs.join(", ");
   230 
   230 
   231         if (error == Phonon::NormalError && m_hasVideo && !m_videoStreamFound) {
   231         if (error == Phonon::NormalError && m_hasVideo && !m_videoStreamFound) {
   232             m_hasVideo = false;
   232             m_hasVideo = false;
   233             emit hasVideoChanged(false);
   233             emit hasVideoChanged(false);
   234         }
   234         }
   235         setError(QString(tr("A required codec is missing. You need to install the following codec(s) to play this content: %0")).arg(codecs), error);
   235         setError(tr("A required codec is missing. You need to install the following codec(s) to play this content: %0").arg(codecs), error);
   236         m_missingCodecs.clear();
   236         m_missingCodecs.clear();
   237 #endif
   237 #endif
   238     }
   238     }
   239 }
   239 }
   240 
   240