Changeset 138919 in webkit


Ignore:
Timestamp:
Jan 6, 2013 12:26:23 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Bug 106177 - [GStreamer] Don't call gst_video_info_from_caps() with non-fixed caps
https://bugs.webkit.org/show_bug.cgi?id=106177

Patch by Sebastian Dröge <sebastian.droege@collabora.co.uk> on 2013-01-06
Reviewed by Martin Robinson.

  • platform/graphics/gstreamer/GStreamerVersioning.cpp:

(getVideoSizeAndFormatFromCaps):
Don't call gst_video_info_from_caps() with non-fixed caps as
it will cause assertions.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r138918 r138919  
     12013-01-06  Sebastian Dröge  <sebastian.droege@collabora.co.uk>
     2
     3        Bug 106177 - [GStreamer] Don't call gst_video_info_from_caps() with non-fixed caps
     4        https://bugs.webkit.org/show_bug.cgi?id=106177
     5
     6        Reviewed by Martin Robinson.
     7
     8        * platform/graphics/gstreamer/GStreamerVersioning.cpp:
     9        (getVideoSizeAndFormatFromCaps):
     10        Don't call gst_video_info_from_caps() with non-fixed caps as
     11        it will cause assertions.
     12
    1132013-01-06  Abhishek Arya  <inferno@chromium.org>
    214
  • trunk/Source/WebCore/platform/graphics/gstreamer/GStreamerVersioning.cpp

    r138786 r138919  
    7676#ifdef GST_API_VERSION_1
    7777    GstVideoInfo info;
    78     if (!gst_video_info_from_caps(&info, caps))
     78
     79    if (!gst_caps_is_fixed(caps) || !gst_video_info_from_caps(&info, caps))
    7980        return false;
    8081
Note: See TracChangeset for help on using the changeset viewer.