Changeset 50424 in webkit


Ignore:
Timestamp:
Nov 2, 2009 11:34:17 AM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-02 Philippe Normand <pnormand@igalia.com>

Reviewed by Jan Alonzo.

[GTK] Failing media/video-played-reset.html
https://bugs.webkit.org/show_bug.cgi?id=30589

new m_seekTime attribute to keep track of the seek position

  • platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp: (WebCore::MediaPlayerPrivate::currentTime): (WebCore::MediaPlayerPrivate::seek):
  • platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
Location:
trunk/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50423 r50424  
     12009-11-02  Philippe Normand  <pnormand@igalia.com>
     2
     3        Reviewed by Jan Alonzo.
     4
     5        [GTK] Failing media/video-played-reset.html
     6        https://bugs.webkit.org/show_bug.cgi?id=30589
     7
     8        new m_seekTime attribute to keep track of the seek position
     9
     10        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
     11        (WebCore::MediaPlayerPrivate::currentTime):
     12        (WebCore::MediaPlayerPrivate::seek):
     13        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.h:
     14
    1152009-11-02  Xan Lopez  <xlopez@igalia.com>
    216
  • trunk/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp

    r50385 r50424  
    137137    , m_videoSink(0)
    138138    , m_source(0)
     139    , m_seekTime(0)
    139140    , m_endTime(numeric_limits<float>::infinity())
    140141    , m_networkState(MediaPlayer::Empty)
     
    226227        return 0;
    227228
     229    if (m_seeking)
     230        return m_seekTime;
     231
    228232    float ret = 0.0;
    229233
     
    265269            GST_SEEK_TYPE_NONE, GST_CLOCK_TIME_NONE))
    266270        LOG_VERBOSE(Media, "Seek to %f failed", time);
    267     else
     271    else {
    268272        m_seeking = true;
     273        m_seekTime = sec;
     274    }
    269275}
    270276
  • trunk/WebCore/platform/graphics/gtk/MediaPlayerPrivateGStreamer.h

    r50122 r50424  
    3030#include <cairo.h>
    3131#include <glib.h>
     32#include <gst/gst.h>
    3233
    3334typedef struct _WebKitVideoSink WebKitVideoSink;
     
    125126            GstElement* m_videoSink;
    126127            GstElement* m_source;
     128            GstClockTime m_seekTime;
    127129            float m_endTime;
    128130            bool m_isEndReached;
Note: See TracChangeset for help on using the changeset viewer.