Changeset 561 for trunk/src/3rdparty/phonon/ds9/mediagraph.cpp
- Timestamp:
- Feb 11, 2010, 11:19:06 PM (15 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/vendor/nokia/qt/4.6.1 merged eligible /branches/vendor/nokia/qt/current merged eligible /branches/vendor/trolltech/qt/current 3-149
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/src/3rdparty/phonon/ds9/mediagraph.cpp
r2 r561 69 69 } 70 70 71 72 /* 71 73 static HRESULT saveToFile(Graph graph, const QString &filepath) 72 74 { … … 104 106 return hr; 105 107 } 106 108 */ 107 109 108 110 MediaGraph::MediaGraph(MediaObject *mo, short index) : … … 382 384 if (info.pGraph) { 383 385 info.pGraph->Release(); 384 return m_graph->RemoveFilter(filter); 386 if (info.pGraph == m_graph) 387 return m_graph->RemoveFilter(filter); 385 388 } 386 389 … … 538 541 for(int i = 0; i < outputs.count(); ++i) { 539 542 const OutputPin &pin = outputs.at(i); 540 if ( VFW_E_NOT_CONNECTED== pin->ConnectedTo(inPin.pparam())) {543 if (HRESULT(VFW_E_NOT_CONNECTED) == pin->ConnectedTo(inPin.pparam())) { 541 544 return SUCCEEDED(pin->Connect(newIn, 0)); 542 545 } … … 680 683 } else if (source.discType() == Phonon::Cd) { 681 684 m_realSource = Filter(new QAudioCDPlayer); 682 m_result = m_graph->AddFilter(m_realSource, 0);683 685 684 686 #endif //QT_NO_PHONON_MEDIACONTROLLER … … 810 812 const OutputPin &out = outputs.at(i); 811 813 InputPin pin; 812 if (out->ConnectedTo(pin.pparam()) == VFW_E_NOT_CONNECTED) {814 if (out->ConnectedTo(pin.pparam()) == HRESULT(VFW_E_NOT_CONNECTED)) { 813 815 m_decoderPins += out; //unconnected outputs can be decoded outputs 814 816 } … … 1007 1009 HRESULT hr = mediaContent->get_AuthorName(&str); 1008 1010 if (SUCCEEDED(hr)) { 1009 ret.insert(QLatin1String("ARTIST"), QString::from Utf16((const unsigned short*)str));1011 ret.insert(QLatin1String("ARTIST"), QString::fromWCharArray(str)); 1010 1012 SysFreeString(str); 1011 1013 } 1012 1014 hr = mediaContent->get_Title(&str); 1013 1015 if (SUCCEEDED(hr)) { 1014 ret.insert(QLatin1String("TITLE"), QString::from Utf16((const unsigned short*)str));1016 ret.insert(QLatin1String("TITLE"), QString::fromWCharArray(str)); 1015 1017 SysFreeString(str); 1016 1018 } 1017 1019 hr = mediaContent->get_Description(&str); 1018 1020 if (SUCCEEDED(hr)) { 1019 ret.insert(QLatin1String("DESCRIPTION"), QString::from Utf16((const unsigned short*)str));1021 ret.insert(QLatin1String("DESCRIPTION"), QString::fromWCharArray(str)); 1020 1022 SysFreeString(str); 1021 1023 } 1022 1024 hr = mediaContent->get_Copyright(&str); 1023 1025 if (SUCCEEDED(hr)) { 1024 ret.insert(QLatin1String("COPYRIGHT"), QString::from Utf16((const unsigned short*)str));1026 ret.insert(QLatin1String("COPYRIGHT"), QString::fromWCharArray(str)); 1025 1027 SysFreeString(str); 1026 1028 } 1027 1029 hr = mediaContent->get_MoreInfoText(&str); 1028 1030 if (SUCCEEDED(hr)) { 1029 ret.insert(QLatin1String("MOREINFO"), QString::from Utf16((const unsigned short*)str));1031 ret.insert(QLatin1String("MOREINFO"), QString::fromWCharArray(str)); 1030 1032 SysFreeString(str); 1031 1033 }
Note:
See TracChangeset
for help on using the changeset viewer.