Commit 779ae56a authored by christian@webkit.org's avatar christian@webkit.org

2010-02-04 Christian Dywan <christian@twotoasts.de>

        Rubber-stamped by Gustavo Noronha Silva.

        Add ENABLE(VIDEO) guards around freeOwnedGPtr<GstElement> implementation.

        * platform/gtk/GOwnPtrGtk.cpp:

git-svn-id: svn://svn.chromium.org/blink/trunk@54374 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 8317ed7e
2010-02-04 Christian Dywan <christian@twotoasts.de>
Rubber-stamped by Gustavo Noronha Silva.
Add ENABLE(VIDEO) guards around freeOwnedGPtr<GstElement> implementation.
* platform/gtk/GOwnPtrGtk.cpp:
2010-02-04 Alexey Proskuryakov <ap@apple.com>
Reviewed by Darin Adler.
......
......@@ -20,7 +20,9 @@
#include "config.h"
#include "GOwnPtrGtk.h"
#if ENABLE(VIDEO)
#include <gst/gstelement.h>
#endif
#include <libsoup/soup-uri.h>
namespace WTF {
......@@ -31,10 +33,12 @@ template <> void freeOwnedGPtr<SoupURI>(SoupURI* ptr)
soup_uri_free(ptr);
}
#if ENABLE(VIDEO)
template <> void freeOwnedGPtr<GstElement>(GstElement* ptr)
{
if (ptr)
gst_object_unref(ptr);
}
#endif
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment