Changeset 140272 in webkit


Ignore:
Timestamp:
Jan 20, 2013 3:36:20 AM (11 years ago)
Author:
Christophe Dumez
Message:

[gstreamer] assertion in g_object_unref from _WebKitWebAudioSourcePrivate destructor
https://bugs.webkit.org/show_bug.cgi?id=107374

Reviewed by Philippe Normand.

WebKitWebAudioSrc object gets unrefed one time too many in
_WebKitWebAudioSourcePrivate destructor, causing an assertion
in g_object_unref. This patch passes NULL instead of
g_object_unref to gst_task_new() so that the WebKitWebAudioSrc
object does not get unrefed when the GstTask is destroyed.

No new tests, already covered by webaudio tests.

  • platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:

(webkit_web_audio_src_init):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r140270 r140272  
     12013-01-20  Christophe Dumez  <christophe.dumez@intel.com>
     2
     3        [gstreamer]  assertion in g_object_unref from _WebKitWebAudioSourcePrivate destructor
     4        https://bugs.webkit.org/show_bug.cgi?id=107374
     5
     6        Reviewed by Philippe Normand.
     7
     8        WebKitWebAudioSrc object gets unrefed one time too many in
     9        _WebKitWebAudioSourcePrivate destructor, causing an assertion
     10        in g_object_unref. This patch passes NULL instead of
     11        g_object_unref to gst_task_new() so that the WebKitWebAudioSrc
     12        object does not get unrefed when the GstTask is destroyed.
     13
     14        No new tests, already covered by webaudio tests.
     15
     16        * platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp:
     17        (webkit_web_audio_src_init):
     18
    1192013-01-20  Kentaro Hara  <haraken@chromium.org>
    220
  • trunk/Source/WebCore/platform/audio/gstreamer/WebKitWebAudioSourceGStreamer.cpp

    r138960 r140272  
    208208#ifdef GST_API_VERSION_1
    209209    g_rec_mutex_init(&priv->mutex);
    210     priv->task = gst_task_new(reinterpret_cast<GstTaskFunction>(webKitWebAudioSrcLoop), src, reinterpret_cast<GDestroyNotify>(g_object_unref));
     210    priv->task = gst_task_new(reinterpret_cast<GstTaskFunction>(webKitWebAudioSrcLoop), src, 0);
    211211#else
    212212    g_static_rec_mutex_init(&priv->mutex);
Note: See TracChangeset for help on using the changeset viewer.