src/3rdparty/phonon/ds9/mediagraph.cpp
changeset 30 5dc02b23752f
parent 0 1918ee327afb
equal deleted inserted replaced
29:b72c6db6890b 30:5dc02b23752f
   377         HRESULT MediaGraph::removeFilter(const Filter& filter)
   377         HRESULT MediaGraph::removeFilter(const Filter& filter)
   378         {
   378         {
   379             FILTER_INFO info;
   379             FILTER_INFO info;
   380             filter->QueryFilterInfo(&info);
   380             filter->QueryFilterInfo(&info);
   381 #ifdef GRAPH_DEBUG
   381 #ifdef GRAPH_DEBUG
   382             qDebug() << "removeFilter" << QString::fromUtf16(info.achName);
   382             qDebug() << "removeFilter" << QString((const QChar *)info.achName);
   383 #endif
   383 #endif
   384             if (info.pGraph) {
   384             if (info.pGraph) {
   385                 info.pGraph->Release();
   385                 info.pGraph->Release();
   386                 if (info.pGraph == m_graph)
   386                 if (info.pGraph == m_graph)
   387                     return m_graph->RemoveFilter(filter);
   387                     return m_graph->RemoveFilter(filter);
   873             }
   873             }
   874 #ifdef GRAPH_DEBUG
   874 #ifdef GRAPH_DEBUG
   875             {
   875             {
   876                 FILTER_INFO info;
   876                 FILTER_INFO info;
   877                 filter->QueryFilterInfo(&info);
   877                 filter->QueryFilterInfo(&info);
   878                 qDebug() << Q_FUNC_INFO << QString::fromUtf16(info.achName);
   878                 qDebug() << Q_FUNC_INFO << QString((const QChar *)info.achName);
   879                 if (info.pGraph) {
   879                 if (info.pGraph) {
   880                     info.pGraph->Release();
   880                     info.pGraph->Release();
   881                 }
   881                 }
   882             }
   882             }
   883 #endif
   883 #endif
   919 
   919 
   920 #ifdef GRAPH_DEBUG
   920 #ifdef GRAPH_DEBUG
   921             {
   921             {
   922                 FILTER_INFO info;
   922                 FILTER_INFO info;
   923                 filter->QueryFilterInfo(&info);
   923                 filter->QueryFilterInfo(&info);
   924                 qDebug() << "found a decoder filter" << QString::fromUtf16(info.achName);
   924                 qDebug() << "found a decoder filter" << QString((const QChar *)info.achName);
   925                 if (info.pGraph) {
   925                 if (info.pGraph) {
   926                     info.pGraph->Release();
   926                     info.pGraph->Release();
   927                 }
   927                 }
   928             }
   928             }
   929 #endif
   929 #endif
   935         {
   935         {
   936 #ifdef GRAPH_DEBUG
   936 #ifdef GRAPH_DEBUG
   937             {
   937             {
   938                 FILTER_INFO info;
   938                 FILTER_INFO info;
   939                 filter->QueryFilterInfo(&info);
   939                 filter->QueryFilterInfo(&info);
   940                 qDebug() << Q_FUNC_INFO << QString::fromUtf16(info.achName);
   940                 qDebug() << Q_FUNC_INFO << QString((const QChar *)info.achName);
   941                 if (info.pGraph) {
   941                 if (info.pGraph) {
   942                     info.pGraph->Release();
   942                     info.pGraph->Release();
   943                 }
   943                 }
   944             }
   944             }
   945 #endif
   945 #endif
   954 
   954 
   955 #ifdef GRAPH_DEBUG
   955 #ifdef GRAPH_DEBUG
   956             {
   956             {
   957                 FILTER_INFO info;
   957                 FILTER_INFO info;
   958                 filter->QueryFilterInfo(&info);
   958                 filter->QueryFilterInfo(&info);
   959                 qDebug() << Q_FUNC_INFO << QString::fromUtf16(info.achName);
   959                 qDebug() << Q_FUNC_INFO << QString((const QChar *)info.achName);
   960                 if (info.pGraph) {
   960                 if (info.pGraph) {
   961                     info.pGraph->Release();
   961                     info.pGraph->Release();
   962                 }
   962                 }
   963             }
   963             }
   964 #endif
   964 #endif
   988             }
   988             }
   989 #ifdef GRAPH_DEBUG
   989 #ifdef GRAPH_DEBUG
   990             {
   990             {
   991                 FILTER_INFO info;
   991                 FILTER_INFO info;
   992                 filter->QueryFilterInfo(&info);
   992                 filter->QueryFilterInfo(&info);
   993                 qDebug() << "found a demuxer filter" << QString::fromUtf16(info.achName);
   993                 qDebug() << "found a demuxer filter" << QString((const QChar *)info.achName);
   994                 if (info.pGraph) {
   994                 if (info.pGraph) {
   995                     info.pGraph->Release();
   995                     info.pGraph->Release();
   996                 }
   996                 }
   997             }
   997             }
   998 #endif
   998 #endif