Commit 8961a506 authored by xan@webkit.org's avatar xan@webkit.org

2009-08-26 Vincent Untz <vuntz@gnome.org>

        Reviewed by Xan Lopez.

        GObject checks for NULL (and not 0) in g_object_get, so use that
        as we were already doing elsewhere to make the compiler happy.

        * platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
        (WebCore::MediaPlayerPrivate::hasAudio):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@47779 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 05d2c95d
2009-08-26 Vincent Untz <vuntz@gnome.org>
Reviewed by Xan Lopez.
GObject checks for NULL (and not 0) in g_object_get, so use that
as we were already doing elsewhere to make the compiler happy.
* platform/graphics/gtk/MediaPlayerPrivateGStreamer.cpp:
(WebCore::MediaPlayerPrivate::hasAudio):
2009-08-26 Alpha Lam <hclam@chromium.org>
Reviewed by David Levin.
......@@ -322,7 +322,7 @@ bool MediaPlayerPrivate::hasAudio() const
{
gint currentAudio = -1;
if (m_playBin)
g_object_get(G_OBJECT(m_playBin), "current-audio", &currentAudio, 0);
g_object_get(G_OBJECT(m_playBin), "current-audio", &currentAudio, NULL);
return currentAudio > -1;
}
......
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