Changeset 58246 in webkit


Ignore:
Timestamp:
Apr 26, 2010 4:32:09 AM (14 years ago)
Author:
eric@webkit.org
Message:

2010-04-26 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Tor Arne Vestbø.

[Qt] Fix compilation against Qt 4.7

Some QtMultimedia things have been moved into QtMediaServices
https://bugs.webkit.org/show_bug.cgi?id=38111

  • WebCore.pro:
  • platform/graphics/qt/MediaPlayerPrivateQt.cpp: (WebCore::MediaPlayerPrivate::supportsType): (WebCore::MediaPlayerPrivate::totalBytes):
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r58243 r58246  
     12010-04-26  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        [Qt] Fix compilation against Qt 4.7
     6
     7        Some QtMultimedia things have been moved into QtMediaServices
     8        https://bugs.webkit.org/show_bug.cgi?id=38111
     9
     10        * WebCore.pro:
     11        * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
     12        (WebCore::MediaPlayerPrivate::supportsType):
     13        (WebCore::MediaPlayerPrivate::totalBytes):
     14
    1152010-04-26  Zoltan Herczeg  <zherczeg@webkit.org>
    216
  • trunk/WebCore/WebCore.pro

    r58236 r58246  
    23992399            SOURCES += platform/graphics/qt/MediaPlayerPrivateQt.cpp
    24002400
    2401             tobe|!tobe: QT += multimedia
     2401            tobe|!tobe: QT += multimedia mediaservices
    24022402        } else {
    24032403            HEADERS += \
  • trunk/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp

    r56825 r58246  
    7878        return MediaPlayer::IsNotSupported;
    7979
    80     if (QMediaPlayer::hasSupport(mime, QStringList(codec)) >= QtMultimedia::ProbablySupported)
     80    if (QMediaPlayer::hasSupport(mime, QStringList(codec)) >= QtMediaServices::ProbablySupported)
    8181        return MediaPlayer::IsSupported;
    8282
     
    345345unsigned MediaPlayerPrivate::totalBytes() const
    346346{
    347     if (m_mediaPlayer->availableMetaData().contains(QtMultimedia::Size))
    348         return m_mediaPlayer->metaData(QtMultimedia::Size).toInt();
     347    if (m_mediaPlayer->availableMetaData().contains(QtMediaServices::Size))
     348        return m_mediaPlayer->metaData(QtMediaServices::Size).toInt();
    349349
    350350    return 100;
Note: See TracChangeset for help on using the changeset viewer.