diff options
author | Armin Weatherwax | 2010-05-04 16:47:17 +0200 |
---|---|---|
committer | Armin Weatherwax | 2010-05-04 16:47:17 +0200 |
commit | a5b7203dbdaac2c41a2a40bbd45a7050dfb96f5b (patch) | |
tree | 0b6d007572098c5bd8558886822eda5d2b010a7b | |
parent | update Linux (32 and 64bit) OpenAL to 1.11.753 (diff) | |
download | meta-impy-a5b7203dbdaac2c41a2a40bbd45a7050dfb96f5b.zip meta-impy-a5b7203dbdaac2c41a2a40bbd45a7050dfb96f5b.tar.gz meta-impy-a5b7203dbdaac2c41a2a40bbd45a7050dfb96f5b.tar.bz2 meta-impy-a5b7203dbdaac2c41a2a40bbd45a7050dfb96f5b.tar.xz |
replace ambiguous NULL pointers for g_object.
-rw-r--r-- | linden/indra/llmedia/llmediaimplgstreamer.cpp | 6 | ||||
-rw-r--r-- | linden/indra/newview/llappviewerlinux.cpp | 9 |
2 files changed, 11 insertions, 4 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp index a9e0004..259f903 100644 --- a/linden/indra/llmedia/llmediaimplgstreamer.cpp +++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp | |||
@@ -130,7 +130,7 @@ LLMediaImplGStreamer () : | |||
130 | return; // error | 130 | return; // error |
131 | } | 131 | } |
132 | 132 | ||
133 | g_object_set(mPlaybin, "video-sink", mVideoSink, NULL); | 133 | g_object_set(mPlaybin, "video-sink", mVideoSink, (void*)NULL); |
134 | } | 134 | } |
135 | } | 135 | } |
136 | 136 | ||
@@ -591,7 +591,7 @@ bool LLMediaImplGStreamer::navigateTo (const std::string urlIn) | |||
591 | setStatus( LLMediaBase::STATUS_NAVIGATING ); | 591 | setStatus( LLMediaBase::STATUS_NAVIGATING ); |
592 | 592 | ||
593 | // set URI | 593 | // set URI |
594 | g_object_set (G_OBJECT (mPlaybin), "uri", urlIn.c_str(), NULL); | 594 | g_object_set (G_OBJECT (mPlaybin), "uri", urlIn.c_str(), (void*)NULL); |
595 | 595 | ||
596 | // get playbin's bus - perhaps this can/should be done in ctor | 596 | // get playbin's bus - perhaps this can/should be done in ctor |
597 | GstBus *bus = gst_pipeline_get_bus (GST_PIPELINE (mPlaybin)); | 597 | GstBus *bus = gst_pipeline_get_bus (GST_PIPELINE (mPlaybin)); |
@@ -917,7 +917,7 @@ bool LLMediaImplGStreamer::setVolume(float volume) | |||
917 | mVolume = volume; | 917 | mVolume = volume; |
918 | if (mPlaybin) | 918 | if (mPlaybin) |
919 | { | 919 | { |
920 | g_object_set(mPlaybin, "volume", mVolume, NULL); | 920 | g_object_set(mPlaybin, "volume", mVolume, (void*)NULL); |
921 | return true; | 921 | return true; |
922 | } | 922 | } |
923 | 923 | ||
diff --git a/linden/indra/newview/llappviewerlinux.cpp b/linden/indra/newview/llappviewerlinux.cpp index a844f81..4372053 100644 --- a/linden/indra/newview/llappviewerlinux.cpp +++ b/linden/indra/newview/llappviewerlinux.cpp | |||
@@ -464,8 +464,15 @@ bool LLAppViewerLinux::initSLURLHandler() | |||
464 | LL_DEBUGS("DBUS")<< "Debug DBUS Start"<< LL_ENDL; | 464 | LL_DEBUGS("DBUS")<< "Debug DBUS Start"<< LL_ENDL; |
465 | 465 | ||
466 | //ViewerAppAPI *api_server = (ViewerAppAPI*) | 466 | //ViewerAppAPI *api_server = (ViewerAppAPI*) |
467 | g_object_new(viewerappapi_get_type(), NULL); | ||
468 | 467 | ||
468 | g_object_new(viewerappapi_get_type(), NULL, (void*)NULL); | ||
469 | /// also possible instead: | ||
470 | /* GType obj_type = viewerappapi_get_type(); | ||
471 | g_object_newv(obj_type, 0, NULL); //gpointer g_object_newv (GType object_type, | ||
472 | // guint n_parameters, | ||
473 | // GParameter *parameters); | ||
474 | |||
475 | */ | ||
469 | return true; | 476 | return true; |
470 | } | 477 | } |
471 | 478 | ||