Changeset 88318 in webkit


Ignore:
Timestamp:
Jun 7, 2011 7:44:35 PM (13 years ago)
Author:
yi.4.shen@nokia.com
Message:

2011-06-07 Yi Shen <yi.4.shen@nokia.com>

Reviewed by Simon Hausmann.

[Qt] Fix the error code for media resource failures when using QtMobility
https://bugs.webkit.org/show_bug.cgi?id=55901

Unskip the tests which are now passing.

  • platform/qt/Skipped:

2011-06-07 Yi Shen <yi.4.shen@nokia.com>

Reviewed by Simon Hausmann.

[Qt] Fix the error code for media resource failures when using QtMobility
https://bugs.webkit.org/show_bug.cgi?id=55901

To indicate the media resource failures, set the network state to
MediaPlayer::FormatError when receives QMediaPlayer::InvalidMedia or
QMediaPlayer::ResourceError.

  • platform/graphics/qt/MediaPlayerPrivateQt.cpp: (WebCore::MediaPlayerPrivateQt::updateStates):
Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r88315 r88318  
     12011-06-07  Yi Shen  <yi.4.shen@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Fix the error code for media resource failures when using QtMobility
     6        https://bugs.webkit.org/show_bug.cgi?id=55901
     7
     8        Unskip the tests which are now passing.
     9
     10        * platform/qt/Skipped:
     11
    1122011-06-07  Gavin Barraclough  <barraclough@apple.com>
    213
  • trunk/LayoutTests/platform/qt/Skipped

    r88201 r88318  
    586586media/video-element-other-namespace-crash.html
    587587media/video-empty-source.html
    588 media/video-error-does-not-exist.html
    589588media/video-layer-crash.html
    590589media/video-load-networkState.html
     
    608607media/video-source-type.html
    609608media/video-source-type-params.html
    610 media/video-src-change.html
    611 media/video-src-invalid-remove.html
    612 media/video-src-none.html
    613 media/video-src-plus-source.html
    614609media/video-timeupdate-during-playback.html
    615610media/video-timeupdate-reverse-play.html
  • trunk/Source/WebCore/ChangeLog

    r88317 r88318  
     12011-06-07  Yi Shen  <yi.4.shen@nokia.com>
     2
     3        Reviewed by Simon Hausmann.
     4
     5        [Qt] Fix the error code for media resource failures when using QtMobility
     6        https://bugs.webkit.org/show_bug.cgi?id=55901
     7
     8        To indicate the media resource failures, set the network state to
     9        MediaPlayer::FormatError when receives QMediaPlayer::InvalidMedia or
     10        QMediaPlayer::ResourceError.
     11
     12        * platform/graphics/qt/MediaPlayerPrivateQt.cpp:
     13        (WebCore::MediaPlayerPrivateQt::updateStates):
     14
    1152011-06-07  Emil A Eklund  <eae@chromium.org>
    216
  • trunk/Source/WebCore/platform/graphics/qt/MediaPlayerPrivateQt.cpp

    r86451 r88318  
    491491    if (currentError != QMediaPlayer::NoError) {
    492492        m_readyState = MediaPlayer::HaveNothing;
    493         if (currentError == QMediaPlayer::FormatError)
     493        if (currentError == QMediaPlayer::FormatError || currentError == QMediaPlayer::ResourceError)
    494494            m_networkState = MediaPlayer::FormatError;
    495495        else
     
    516516        m_readyState = MediaPlayer::HaveEnoughData;
    517517    } else if (currentStatus == QMediaPlayer::InvalidMedia) {
    518         m_networkState = MediaPlayer::NetworkError;
     518        m_networkState = MediaPlayer::FormatError;
    519519        m_readyState = MediaPlayer::HaveNothing;
    520520    }
Note: See TracChangeset for help on using the changeset viewer.