aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-03-16 07:39:13 -0700
committerMcCabe Maxsted2009-03-16 20:22:22 -0700
commit29f7ae7e3ecfcde6c7a46d550f43954ac284b12f (patch)
tree9107a8f6c1264460ffc3c80ef4fac198474a5c31 /linden
parentChanged startinternetstream() a bit to be clearer (diff)
downloadmeta-impy-29f7ae7e3ecfcde6c7a46d550f43954ac284b12f.zip
meta-impy-29f7ae7e3ecfcde6c7a46d550f43954ac284b12f.tar.gz
meta-impy-29f7ae7e3ecfcde6c7a46d550f43954ac284b12f.tar.bz2
meta-impy-29f7ae7e3ecfcde6c7a46d550f43954ac284b12f.tar.xz
Visual Studio now ignores C4244 warnings in GStreamer
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamer.cpp15
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamer_syms.cpp12
-rw-r--r--linden/indra/llmedia/llmediamanager.cpp14
3 files changed, 37 insertions, 4 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer.cpp b/linden/indra/llmedia/llmediaimplgstreamer.cpp
index 30706f1..b37deac 100644
--- a/linden/indra/llmedia/llmediaimplgstreamer.cpp
+++ b/linden/indra/llmedia/llmediaimplgstreamer.cpp
@@ -30,15 +30,26 @@
30 * $/LicenseInfo$ 30 * $/LicenseInfo$
31 */ 31 */
32 32
33#include "llmediaimplgstreamer.h"
34
35///#if LL_GSTREAMER_ENABLED 33///#if LL_GSTREAMER_ENABLED
36 34
35#if LL_WINDOWS
36 // GStreamer 0.10.22 - gstutils.h - conversion from 'guint64' to 'guint8'.
37 // This was an intentional change to make GStreamer more threadsafe, and
38 // is okay. Delete this bit if GStreamer ever gets more VS-friendly -- McCabe
39 #pragma warning(disable : 4244)
40#endif
41
42#include "llmediaimplgstreamer.h"
43
37extern "C" { 44extern "C" {
38#include <gst/gst.h> 45#include <gst/gst.h>
39#include <gst/gstelement.h> 46#include <gst/gstelement.h>
40} 47}
41 48
49#if LL_WINDOWS
50 #pragma warning(default : 4244)
51#endif
52
42#include "llmediamanager.h" 53#include "llmediamanager.h"
43#include "llmediaimplregister.h" 54#include "llmediaimplregister.h"
44 55
diff --git a/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp b/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
index fb1949a..2f6d09c 100644
--- a/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
+++ b/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
@@ -31,6 +31,13 @@
31 31
32///#if LL_GSTREAMER_ENABLED 32///#if LL_GSTREAMER_ENABLED
33 33
34#if LL_WINDOWS
35 // GStreamer 0.10.22 - gstutils.h - conversion from 'guint64' to 'guint8'.
36 // This was an intentional change to make GStreamer more threadsafe, and
37 // is okay. Delete this bit if GStreamer ever gets more VS-friendly -- McCabe
38 #pragma warning(disable : 4244)
39#endif
40
34extern "C" { 41extern "C" {
35#include <gst/gst.h> 42#include <gst/gst.h>
36 43
@@ -40,6 +47,10 @@ extern "C" {
40 47
41#include "llmediaimplgstreamer.h" 48#include "llmediaimplgstreamer.h"
42 49
50#if LL_WINDOWS
51 #pragma warning(default : 4244)
52#endif
53
43#define LL_GST_SYM(REQ, GSTSYM, RTN, ...) RTN (*ll##GSTSYM)(__VA_ARGS__) = NULL 54#define LL_GST_SYM(REQ, GSTSYM, RTN, ...) RTN (*ll##GSTSYM)(__VA_ARGS__) = NULL
44#include "llmediaimplgstreamer_syms_raw.inc" 55#include "llmediaimplgstreamer_syms_raw.inc"
45#include "llmediaimplgstreamer_syms_rawa.inc" 56#include "llmediaimplgstreamer_syms_rawa.inc"
@@ -184,5 +195,4 @@ void ungrab_gst_syms()
184 sSymsGrabbed = false; 195 sSymsGrabbed = false;
185} 196}
186 197
187
188///#endif // LL_GSTREAMER_ENABLED 198///#endif // LL_GSTREAMER_ENABLED
diff --git a/linden/indra/llmedia/llmediamanager.cpp b/linden/indra/llmedia/llmediamanager.cpp
index 5394b62..7fe0df3 100644
--- a/linden/indra/llmedia/llmediamanager.cpp
+++ b/linden/indra/llmedia/llmediamanager.cpp
@@ -30,12 +30,24 @@
30 */ 30 */
31 31
32#include "llmediamanager.h" 32#include "llmediamanager.h"
33
34#if LL_WINDOWS
35 // GStreamer 0.10.22 - gstutils.h - conversion from 'guint64' to 'guint8'.
36 // This was an intentional change to make GStreamer more threadsafe, and
37 // is okay. Delete this bit if GStreamer ever gets more VS-friendly -- McCabe
38 #pragma warning(disable : 4244)
39#endif
40#include "llmediaimplgstreamer.h"
41#if LL_WINDOWS
42 #pragma warning(default : 4244)
43#endif
44
33#include "llmediaimplfactory.h" 45#include "llmediaimplfactory.h"
34 46
35#include "llmediaimplexample1.h" 47#include "llmediaimplexample1.h"
36#include "llmediaimplexample2.h" 48#include "llmediaimplexample2.h"
37#include "llmediaimplquicktime.h" 49#include "llmediaimplquicktime.h"
38#include "llmediaimplgstreamer.h" 50
39#if LL_LLMOZLIB_ENABLED 51#if LL_LLMOZLIB_ENABLED
40# include "llmediaimplllmozlib.h" 52# include "llmediaimplllmozlib.h"
41#endif 53#endif