Skip to content

Instantly share code, notes, and snippets.

@Alexpux
Last active October 2, 2020 06:50
Show Gist options
  • Save Alexpux/b2b83a08c84407119049e7633873d6f8 to your computer and use it in GitHub Desktop.
Save Alexpux/b2b83a08c84407119049e7633873d6f8 to your computer and use it in GitHub Desktop.
player/mfmetadatacontrol.cpp: In member function 'virtual QVariant MFMetaDataControl::metaData(const QString&) const':
player/mfmetadatacontrol.cpp:193:64: error: 'PKEY_Video_FrameWidth' was not declared in this scope
193 | if (m_content && SUCCEEDED(m_content->GetValue(PKEY_Video_FrameWidth, &var)))
| ^~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:198:64: error: 'PKEY_Video_Orientation' was not declared in this scope
198 | if (m_content && SUCCEEDED(m_content->GetValue(PKEY_Video_Orientation, &var)))
| ^~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:204:64: error: 'PKEY_Video_VerticalAspectRatio' was not declared in this scope
204 | if (m_content && SUCCEEDED(m_content->GetValue(PKEY_Video_VerticalAspectRatio, &var)))
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp: In member function 'void MFMetaDataControl::updateSource(IMFPresentationDescriptor*, IMFMediaSource*)':
player/mfmetadatacontrol.cpp:285:45: error: 'MF_PROPERTY_HANDLER_SERVICE' was not declared in this scope
285 | if (SUCCEEDED(MFGetService(mediaSource, MF_PROPERTY_HANDLER_SERVICE, IID_PPV_ARGS(&m_content)))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:294:28: error: 'PKEY_Author' was not declared in this scope
294 | if (key == PKEY_Author) {
| ^~~~~~~~~~~
player/mfmetadatacontrol.cpp:298:35: error: 'PKEY_Media_SubTitle' was not declared in this scope
298 | } else if (key == PKEY_Media_SubTitle) {
| ^~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:300:35: error: 'PKEY_ParentalRating' was not declared in this scope
300 | } else if (key == PKEY_ParentalRating) {
| ^~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:302:35: error: 'PKEY_Media_EncodingSettings' was not declared in this scope
302 | } else if (key == PKEY_Media_EncodingSettings) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:304:35: error: 'PKEY_Copyright' was not declared in this scope
304 | } else if (key == PKEY_Copyright) {
| ^~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:306:35: error: 'PKEY_Comment' was not declared in this scope
306 | } else if (key == PKEY_Comment) {
| ^~~~~~~~~~~~
player/mfmetadatacontrol.cpp:308:35: error: 'PKEY_Media_ProviderStyle' was not declared in this scope
308 | } else if (key == PKEY_Media_ProviderStyle) {
| ^~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:310:35: error: 'PKEY_Media_Year' was not declared in this scope
310 | } else if (key == PKEY_Media_Year) {
| ^~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:312:35: error: 'PKEY_Media_DateEncoded' was not declared in this scope
312 | } else if (key == PKEY_Media_DateEncoded) {
| ^~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:314:35: error: 'PKEY_Rating' was not declared in this scope
314 | } else if (key == PKEY_Rating) {
| ^~~~~~~~~~~
player/mfmetadatacontrol.cpp:316:35: error: 'PKEY_Keywords' was not declared in this scope
316 | } else if (key == PKEY_Keywords) {
| ^~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:318:35: error: 'PKEY_Language' was not declared in this scope
318 | } else if (key == PKEY_Language) {
| ^~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:320:35: error: 'PKEY_Media_Publisher' was not declared in this scope
320 | } else if (key == PKEY_Media_Publisher) {
| ^~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:322:35: error: 'PKEY_Media_ClassPrimaryID' was not declared in this scope
322 | } else if (key == PKEY_Media_ClassPrimaryID) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:324:35: error: 'PKEY_Media_Duration' was not declared in this scope
324 | } else if (key == PKEY_Media_Duration) {
| ^~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:326:35: error: 'PKEY_Audio_EncodingBitrate' was not declared in this scope; did you mean 'PKEY_Audio_IsVariableBitRate'?
326 | } else if (key == PKEY_Audio_EncodingBitrate) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
| PKEY_Audio_IsVariableBitRate
player/mfmetadatacontrol.cpp:330:35: error: 'PKEY_Media_AverageLevel' was not declared in this scope
330 | } else if (key == PKEY_Media_AverageLevel) {
| ^~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:338:35: error: 'PKEY_Music_AlbumTitle' was not declared in this scope
338 | } else if (key == PKEY_Music_AlbumTitle) {
| ^~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:340:35: error: 'PKEY_Music_AlbumArtist' was not declared in this scope
340 | } else if (key == PKEY_Music_AlbumArtist) {
| ^~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:342:35: error: 'PKEY_Music_Artist' was not declared in this scope
342 | } else if (key == PKEY_Music_Artist) {
| ^~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:344:35: error: 'PKEY_Music_Composer' was not declared in this scope
344 | } else if (key == PKEY_Music_Composer) {
| ^~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:346:35: error: 'PKEY_Music_Conductor' was not declared in this scope
346 | } else if (key == PKEY_Music_Conductor) {
| ^~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:348:35: error: 'PKEY_Music_Lyrics' was not declared in this scope
348 | } else if (key == PKEY_Music_Lyrics) {
| ^~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:350:35: error: 'PKEY_Music_Mood' was not declared in this scope
350 | } else if (key == PKEY_Music_Mood) {
| ^~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:352:35: error: 'PKEY_Music_TrackNumber' was not declared in this scope
352 | } else if (key == PKEY_Music_TrackNumber) {
| ^~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:354:35: error: 'PKEY_Music_Genre' was not declared in this scope
354 | } else if (key == PKEY_Music_Genre) {
| ^~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:356:35: error: 'PKEY_ThumbnailStream' was not declared in this scope
356 | } else if (key == PKEY_ThumbnailStream) {
| ^~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:358:35: error: 'PKEY_Video_FrameHeight' was not declared in this scope
358 | } else if (key == PKEY_Video_FrameHeight) {
| ^~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:360:35: error: 'PKEY_Video_Orientation' was not declared in this scope
360 | } else if (key == PKEY_Video_Orientation) {
| ^~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:362:35: error: 'PKEY_Video_HorizontalAspectRatio' was not declared in this scope
362 | } else if (key == PKEY_Video_HorizontalAspectRatio) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:364:35: error: 'PKEY_Video_FrameRate' was not declared in this scope; did you mean 'PKEY_Audio_SampleRate'?
364 | } else if (key == PKEY_Video_FrameRate) {
| ^~~~~~~~~~~~~~~~~~~~
| PKEY_Audio_SampleRate
player/mfmetadatacontrol.cpp:366:35: error: 'PKEY_Video_EncodingBitrate' was not declared in this scope
366 | } else if (key == PKEY_Video_EncodingBitrate) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:368:35: error: 'PKEY_Video_Compression' was not declared in this scope; did you mean 'PKEY_Audio_Compression'?
368 | } else if (key == PKEY_Video_Compression) {
| ^~~~~~~~~~~~~~~~~~~~~~
| PKEY_Audio_Compression
player/mfmetadatacontrol.cpp:370:35: error: 'PKEY_Video_Director' was not declared in this scope
370 | } else if (key == PKEY_Video_Director) {
| ^~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:372:35: error: 'PKEY_Media_Writer' was not declared in this scope
372 | } else if (key == PKEY_Media_Writer) {
| ^~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:389:9: error: 'IMFMetadataProvider' was not declared in this scope
389 | IMFMetadataProvider *provider = NULL;
| ^~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:389:30: error: 'provider' was not declared in this scope
389 | IMFMetadataProvider *provider = NULL;
| ^~~~~~~~
In file included from D:/msys32/mingw64/x86_64-w64-mingw32/include/winbase.h:2545,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:70,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/rpc.h:16,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/Mfidl.h:7,
from player/mfmetadatacontrol.h:44,
from player/mfmetadatacontrol.cpp:44:
player/mfmetadatacontrol.cpp:390:49: error: 'MF_METADATA_PROVIDER_SERVICE' was not declared in this scope
390 | if (SUCCEEDED(MFGetService(mediaSource, MF_METADATA_PROVIDER_SERVICE, IID_PPV_ARGS(&provider)))) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
player/mfmetadatacontrol.cpp:390:79: error: no matching function for call to '__mingw_uuidof<<expression error> >()'
390 | if (SUCCEEDED(MFGetService(mediaSource, MF_METADATA_PROVIDER_SERVICE, IID_PPV_ARGS(&provider)))) {
| ^~~~~~~~~~~~
In file included from D:/msys32/mingw64/x86_64-w64-mingw32/include/winnt.h:635,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/minwindef.h:163,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/windef.h:9,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:69,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/rpc.h:16,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/Mfidl.h:7,
from player/mfmetadatacontrol.h:44,
from player/mfmetadatacontrol.cpp:44:
D:/msys32/mingw64/x86_64-w64-mingw32/include/guiddef.h:32:58: note: candidate: 'template<class T> constexpr const GUID& __mingw_uuidof()'
32 | __extension__ template<typename T> constexpr const GUID &__mingw_uuidof();
| ^~~~~~~~~~~~~~
D:/msys32/mingw64/x86_64-w64-mingw32/include/guiddef.h:32:58: note: template argument deduction/substitution failed:
In file included from D:/msys32/mingw64/x86_64-w64-mingw32/include/winbase.h:2545,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/windows.h:70,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/rpc.h:16,
from D:/msys32/mingw64/x86_64-w64-mingw32/include/Mfidl.h:7,
from player/mfmetadatacontrol.h:44,
from player/mfmetadatacontrol.cpp:44:
player/mfmetadatacontrol.cpp:390:79: error: template argument 1 is invalid
390 | if (SUCCEEDED(MFGetService(mediaSource, MF_METADATA_PROVIDER_SERVICE, IID_PPV_ARGS(&provider)))) {
| ^~~~~~~~~~~~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment