aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llmedia/llmediaimplgstreamer_syms.cpp')
-rw-r--r--linden/indra/llmedia/llmediaimplgstreamer_syms.cpp20
1 files changed, 8 insertions, 12 deletions
diff --git a/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp b/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
index 5d54689..bba3ef5 100644
--- a/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
+++ b/linden/indra/llmedia/llmediaimplgstreamer_syms.cpp
@@ -29,8 +29,6 @@
29 * $/LicenseInfo$ 29 * $/LicenseInfo$
30 */ 30 */
31 31
32#include "linden_common.h"
33
34#if LL_GSTREAMER_ENABLED 32#if LL_GSTREAMER_ENABLED
35 33
36extern "C" { 34extern "C" {
@@ -71,7 +69,7 @@ bool grab_gst_syms(std::string gst_dso_name,
71 apr_status_t rv; 69 apr_status_t rv;
72 apr_dso_handle_t *sSymGSTDSOHandle = NULL; 70 apr_dso_handle_t *sSymGSTDSOHandle = NULL;
73 71
74#define LL_GST_SYM(REQ, GSTSYM, RTN, ...) do{rv = apr_dso_sym((apr_dso_handle_sym_t*)&ll##GSTSYM, sSymGSTDSOHandle, #GSTSYM); if (rv != APR_SUCCESS) {llwarns << "Failed to grab symbol: " << #GSTSYM << llendl; if (REQ) sym_error = true;} else llinfos << "grabbed symbol: " << #GSTSYM << " from " << (void*)ll##GSTSYM << llendl;}while(0) 72#define LL_GST_SYM(REQ, GSTSYM, RTN, ...) do{rv = apr_dso_sym((apr_dso_handle_sym_t*)&ll##GSTSYM, sSymGSTDSOHandle, #GSTSYM); if (rv != APR_SUCCESS) {INFOMSG("Failed to grab symbol: %s", #GSTSYM); if (REQ) sym_error = true;} else DEBUGMSG("grabbed symbol: %s from %p", #GSTSYM, (void*)ll##GSTSYM);}while(0)
75 73
76 //attempt to load the shared libraries 74 //attempt to load the shared libraries
77 apr_pool_create(&sSymGSTDSOMemoryPool, NULL); 75 apr_pool_create(&sSymGSTDSOMemoryPool, NULL);
@@ -80,7 +78,7 @@ bool grab_gst_syms(std::string gst_dso_name,
80 gst_dso_name.c_str(), 78 gst_dso_name.c_str(),
81 sSymGSTDSOMemoryPool) )) 79 sSymGSTDSOMemoryPool) ))
82 { 80 {
83 llinfos << "Found DSO: " << gst_dso_name << llendl; 81 INFOMSG("Found DSO: %s", gst_dso_name.c_str());
84#include "llmediaimplgstreamer_syms_raw.inc" 82#include "llmediaimplgstreamer_syms_raw.inc"
85 83
86 if ( sSymGSTDSOHandle ) 84 if ( sSymGSTDSOHandle )
@@ -93,7 +91,7 @@ bool grab_gst_syms(std::string gst_dso_name,
93 gst_dso_name_aud.c_str(), 91 gst_dso_name_aud.c_str(),
94 sSymGSTDSOMemoryPool) )) 92 sSymGSTDSOMemoryPool) ))
95 { 93 {
96 llinfos << "Found DSO: " << gst_dso_name_aud << llendl; 94 INFOMSG("Found DSO: %s", gst_dso_name_aud.c_str());
97#include "llmediaimplgstreamer_syms_rawa.inc" 95#include "llmediaimplgstreamer_syms_rawa.inc"
98 96
99 if ( sSymGSTDSOHandle ) 97 if ( sSymGSTDSOHandle )
@@ -107,20 +105,18 @@ bool grab_gst_syms(std::string gst_dso_name,
107 gst_dso_name_vid.c_str(), 105 gst_dso_name_vid.c_str(),
108 sSymGSTDSOMemoryPool) )) 106 sSymGSTDSOMemoryPool) ))
109 { 107 {
110 llinfos << "Found DSO: " << gst_dso_name_vid << llendl; 108 INFOMSG("Found DSO: %s", gst_dso_name_vid.c_str());
111#include "llmediaimplgstreamer_syms_rawv.inc" 109#include "llmediaimplgstreamer_syms_rawv.inc"
112 } 110 }
113 else 111 else
114 { 112 {
115 llwarns << "Couldn't load DSO: " 113 INFOMSG("Couldn't load DSO: %s", gst_dso_name_vid.c_str());
116 << gst_dso_name_vid << llendl;
117 rtn = false; // failure 114 rtn = false; // failure
118 } 115 }
119 } 116 }
120 else 117 else
121 { 118 {
122 llwarns << "Couldn't load DSO: " 119 INFOMSG("Couldn't load DSO: %s", gst_dso_name_aud.c_str());
123 << gst_dso_name_aud << llendl;
124 rtn = false; // failure 120 rtn = false; // failure
125 } 121 }
126 122
@@ -128,13 +124,13 @@ bool grab_gst_syms(std::string gst_dso_name,
128 } 124 }
129 else 125 else
130 { 126 {
131 llwarns << "Couldn't load DSO: " << gst_dso_name << llendl; 127 INFOMSG("Couldn't load DSO: ", gst_dso_name.c_str());
132 rtn = false; // failure 128 rtn = false; // failure
133 } 129 }
134 130
135 if (sym_error) 131 if (sym_error)
136 { 132 {
137 llwarns << "Failed to find necessary symbols in GStreamer libraries." << llendl; 133 WARNMSG("Failed to find necessary symbols in GStreamer libraries.");
138 } 134 }
139 135
140 if ( sSymGSTDSOHandle ) 136 if ( sSymGSTDSOHandle )