Changeset 127469 in webkit


Ignore:
Timestamp:
Sep 4, 2012 8:45:38 AM (12 years ago)
Author:
Philippe Normand
Message:

[GStreamer] 0.11 build breaks due to rename of gst_message_new_duration
https://bugs.webkit.org/show_bug.cgi?id=95751

Reviewed by Martin Robinson.

In gstreamer commit f712a9596c2bc1863edf9b816d9854eefca9ba45
gst_message_new_duration was renamed to
gst_message_new_duration_changed.

However the only place where we used this is in the HTTP source
element and only if appsrc < 0.10.27 is used at runtime. In the
case of GStreamer 1.0 this condition will be always false so we
can disable this code at build time.

  • platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:

(StreamingClient::didReceiveResponse):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r127468 r127469  
     12012-09-04  Philippe Normand  <pnormand@igalia.com>
     2
     3        [GStreamer] 0.11 build breaks due to rename of gst_message_new_duration
     4        https://bugs.webkit.org/show_bug.cgi?id=95751
     5
     6        Reviewed by Martin Robinson.
     7
     8        In gstreamer commit f712a9596c2bc1863edf9b816d9854eefca9ba45
     9        gst_message_new_duration was renamed to
     10        gst_message_new_duration_changed.
     11
     12        However the only place where we used this is in the HTTP source
     13        element and only if appsrc < 0.10.27 is used at runtime. In the
     14        case of GStreamer 1.0 this condition will be always false so we
     15        can disable this code at build time.
     16
     17        * platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp:
     18        (StreamingClient::didReceiveResponse):
     19
    1202012-09-04  Andrei Poenaru  <poenaru@adobe.com>
    221
  • trunk/Source/WebCore/platform/graphics/gstreamer/WebKitWebSourceGStreamer.cpp

    r125043 r127469  
    783783        length += priv->requestedOffset;
    784784        gst_app_src_set_size(priv->appsrc, length);
     785
     786#ifndef GST_API_VERSION_1
    785787        if (!priv->haveAppSrc27) {
    786 #ifdef GST_API_VERSION_1
    787             GstSegment* segment = &GST_BASE_SRC(priv->appsrc)->segment;
    788             segment->duration = length;
    789             segment->format = GST_FORMAT_BYTES;
    790 #else
    791788            gst_segment_set_duration(&GST_BASE_SRC(priv->appsrc)->segment, GST_FORMAT_BYTES, length);
    792 #endif
    793789            gst_element_post_message(GST_ELEMENT(priv->appsrc),
    794790                                     gst_message_new_duration(GST_OBJECT(priv->appsrc),
    795791                                                              GST_FORMAT_BYTES, length));
    796792        }
     793#endif
    797794    }
    798795
Note: See TracChangeset for help on using the changeset viewer.