Gentoo Archives: gentoo-commits

From: "Alexis Ballier (aballier)" <aballier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/vlc/1.0.5: 550_all_xulrunner192.patch series
Date: Wed, 24 Feb 2010 13:04:41
Message-Id: E1NkGuq-0005vc-D3@stork.gentoo.org
1 aballier 10/02/24 13:04:36
2
3 Modified: series
4 Added: 550_all_xulrunner192.patch
5 Log:
6 add xul192 patch
7
8 Revision Changes Path
9 1.2 src/patchsets/vlc/1.0.5/series
10
11 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/1.0.5/series?rev=1.2&view=markup
12 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/1.0.5/series?rev=1.2&content-type=text/plain
13 diff : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/1.0.5/series?r1=1.1&r2=1.2
14
15 Index: series
16 ===================================================================
17 RCS file: /var/cvsroot/gentoo/src/patchsets/vlc/1.0.5/series,v
18 retrieving revision 1.1
19 retrieving revision 1.2
20 diff -u -r1.1 -r1.2
21 --- series 23 Feb 2010 10:06:09 -0000 1.1
22 +++ series 24 Feb 2010 13:04:35 -0000 1.2
23 @@ -6,3 +6,4 @@
24 320_all_disable_media_list_player_tests.patch
25 530_all_older_xcb_xv.patch
26 540_all_png14.patch
27 +550_all_xulrunner192.patch
28
29
30
31 1.1 src/patchsets/vlc/1.0.5/550_all_xulrunner192.patch
32
33 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/1.0.5/550_all_xulrunner192.patch?rev=1.1&view=markup
34 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/vlc/1.0.5/550_all_xulrunner192.patch?rev=1.1&content-type=text/plain
35
36 Index: 550_all_xulrunner192.patch
37 ===================================================================
38 Patch from kwizart
39 http://cvs.rpmfusion.org/viewvc/rpms/vlc/devel/?root=free
40 Not upstreamable as it breaks with old xulrunner and needs to be applied
41 conditionally.
42 https://bugs.gentoo.org/show_bug.cgi?id=290318
43
44 Index: vlc-1.0.5/projects/mozilla/control/npolibvlc.cpp
45 ===================================================================
46 --- vlc-1.0.5.orig/projects/mozilla/control/npolibvlc.cpp
47 +++ vlc-1.0.5/projects/mozilla/control/npolibvlc.cpp
48 @@ -949,7 +949,7 @@ LibvlcPlaylistNPObject::invoke(int index
49 void LibvlcPlaylistNPObject::parseOptions(const NPString &nps,
50 int *i_options, char*** ppsz_options)
51 {
52 - if( nps.utf8length )
53 + if( nps.UTF8Length )
54 {
55 char *s = stringValue(nps);
56 char *val = s;
57 @@ -961,7 +961,7 @@ void LibvlcPlaylistNPObject::parseOption
58 {
59 int nOptions = 0;
60
61 - char *end = val + nps.utf8length;
62 + char *end = val + nps.UTF8Length;
63 while( val < end )
64 {
65 // skip leading blanks
66 Index: vlc-1.0.5/projects/mozilla/control/nporuntime.cpp
67 ===================================================================
68 --- vlc-1.0.5.orig/projects/mozilla/control/nporuntime.cpp
69 +++ vlc-1.0.5/projects/mozilla/control/nporuntime.cpp
70 @@ -37,11 +37,11 @@
71
72 char* RuntimeNPObject::stringValue(const NPString &s)
73 {
74 - NPUTF8 *val = static_cast<NPUTF8*>(malloc((s.utf8length+1) * sizeof(*val)));
75 + NPUTF8 *val = static_cast<NPUTF8*>(malloc((s.UTF8Length+1) * sizeof(*val)));
76 if( val )
77 {
78 - strncpy(val, s.utf8characters, s.utf8length);
79 - val[s.utf8length] = '\0';
80 + strncpy(val, s.UTF8Characters, s.UTF8Length);
81 + val[s.UTF8Length] = '\0';
82 }
83 return val;
84 }
85 Index: vlc-1.0.5/projects/mozilla/support/npunix.c
86 ===================================================================
87 --- vlc-1.0.5.orig/projects/mozilla/support/npunix.c
88 +++ vlc-1.0.5/projects/mozilla/support/npunix.c
89 @@ -268,8 +268,8 @@ void NPN_ReloadPlugins(NPBool reloadPage
90 #endif
91 }
92
93 -#ifdef OJI
94 -JRIEnv* NPN_GetJavaEnv()
95 +#ifdef OJI_OLD
96 +void * NPN_GetJavaEnv()
97 {
98 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
99 return CallNPN_GetJavaEnvProc(gNetscapeFuncs.getJavaEnv);
100 @@ -278,7 +278,7 @@ JRIEnv* NPN_GetJavaEnv()
101 #endif
102 }
103
104 -jref NPN_GetJavaPeer(NPP instance)
105 +void * NPN_GetJavaPeer(NPP instance)
106 {
107 #if (((NP_VERSION_MAJOR << 8) + NP_VERSION_MINOR) < 20)
108 return CallNPN_GetJavaPeerProc(gNetscapeFuncs.getJavaPeer,
109 @@ -627,8 +627,8 @@ void Private_URLNotify(NPP instance, con
110 void Private_Print(NPP instance, NPPrint* platformPrint);
111 NPError Private_GetValue(NPP instance, NPPVariable variable, void *r_value);
112 NPError Private_SetValue(NPP instance, NPPVariable variable, void *r_value);
113 -#ifdef OJI
114 -JRIGlobalRef Private_GetJavaClass(void);
115 +#ifdef OJI_OLD
116 +void * Private_GetJavaClass(void);
117 #endif
118
119 /* function implementations */
120 @@ -733,13 +733,13 @@ Private_SetValue(NPP instance, NPPVariab
121 return NPP_SetValue(instance, variable, r_value);
122 }
123
124 -#ifdef OJI
125 -JRIGlobalRef
126 +#ifdef OJI_OLD
127 +void *
128 Private_GetJavaClass(void)
129 {
130 - jref clazz = NPP_GetJavaClass();
131 + void * clazz = NPP_GetJavaClass();
132 if (clazz) {
133 - JRIEnv* env = NPN_GetJavaEnv();
134 + void * env = NPN_GetJavaEnv();
135 return JRI_NewGlobalRef(env, clazz);
136 }
137 return NULL;
138 @@ -846,7 +846,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable,
139 gNetscapeFuncs.memfree = nsTable->memfree;
140 gNetscapeFuncs.memflush = nsTable->memflush;
141 gNetscapeFuncs.reloadplugins = nsTable->reloadplugins;
142 -#ifdef OJI
143 +#ifdef OJI_OLD
144 if( minor >= NPVERS_HAS_LIVECONNECT )
145 {
146 gNetscapeFuncs.getJavaEnv = nsTable->getJavaEnv;
147 @@ -969,7 +969,7 @@ NP_Initialize(NPNetscapeFuncs* nsTable,
148 pluginFuncs->urlnotify = (NPP_URLNotifyProcPtr)(Private_URLNotify);
149 #endif
150 }
151 -#ifdef OJI
152 +#ifdef OJI_OLD
153 if( minor >= NPVERS_HAS_LIVECONNECT )
154 pluginFuncs->javaClass = Private_GetJavaClass();
155 else
156 Index: vlc-1.0.5/projects/mozilla/vlcplugin.cpp
157 ===================================================================
158 --- vlc-1.0.5.orig/projects/mozilla/vlcplugin.cpp
159 +++ vlc-1.0.5/projects/mozilla/vlcplugin.cpp
160 @@ -36,11 +36,12 @@
161 #include "control/npolibvlc.h"
162
163 #include <ctype.h>
164 +#include <stdlib.h>
165
166 /*****************************************************************************
167 * VlcPlugin constructor and destructor
168 *****************************************************************************/
169 -VlcPlugin::VlcPlugin( NPP instance, uint16 mode ) :
170 +VlcPlugin::VlcPlugin( NPP instance, uint16_t mode ) :
171 i_npmode(mode),
172 b_stream(0),
173 b_autoplay(1),
174 @@ -227,8 +228,8 @@ NPError VlcPlugin::init(int argc, char*
175 NPString script;
176 NPVariant result;
177
178 - script.utf8characters = docLocHref;
179 - script.utf8length = sizeof(docLocHref)-1;
180 + script.UTF8Characters = docLocHref;
181 + script.UTF8Length = sizeof(docLocHref)-1;
182
183 if( NPN_Evaluate(p_browser, plugin, &script, &result) )
184 {
185 @@ -236,11 +237,11 @@ NPError VlcPlugin::init(int argc, char*
186 {
187 NPString &location = NPVARIANT_TO_STRING(result);
188
189 - psz_baseURL = (char *) malloc(location.utf8length+1);
190 + psz_baseURL = (char *) malloc(location.UTF8Length+1);
191 if( psz_baseURL )
192 {
193 - strncpy(psz_baseURL, location.utf8characters, location.utf8length);
194 - psz_baseURL[location.utf8length] = '\0';
195 + strncpy(psz_baseURL, location.UTF8Characters, location.UTF8Length);
196 + psz_baseURL[location.UTF8Length] = '\0';
197 }
198 }
199 NPN_ReleaseVariantValue(&result);
200 Index: vlc-1.0.5/projects/mozilla/vlcplugin.h
201 ===================================================================
202 --- vlc-1.0.5.orig/projects/mozilla/vlcplugin.h
203 +++ vlc-1.0.5/projects/mozilla/vlcplugin.h
204 @@ -82,7 +82,7 @@ typedef enum vlc_toolbar_clicked_e {
205 class VlcPlugin
206 {
207 public:
208 - VlcPlugin( NPP, uint16 );
209 + VlcPlugin( NPP, uint16_t );
210 virtual ~VlcPlugin();
211
212 NPError init(int argc, char* const argn[], char* const argv[]);
213 @@ -135,7 +135,7 @@ public:
214 vlc_toolbar_clicked_t getToolbarButtonClicked( int i_xpos, int i_ypos );
215 #endif
216
217 - uint16 i_npmode; /* either NP_EMBED or NP_FULL */
218 + uint16_t i_npmode; /* either NP_EMBED or NP_FULL */
219
220 /* plugin properties */
221 int b_stream;
222 Index: vlc-1.0.5/projects/mozilla/vlcshell.cpp
223 ===================================================================
224 --- vlc-1.0.5.orig/projects/mozilla/vlcshell.cpp
225 +++ vlc-1.0.5/projects/mozilla/vlcshell.cpp
226 @@ -265,7 +265,7 @@ NPError NPP_Initialize( void )
227 return NPERR_NO_ERROR;
228 }
229
230 -jref NPP_GetJavaClass( void )
231 +void * NPP_GetJavaClass( void )
232 {
233 return NULL;
234 }
235 @@ -275,7 +275,7 @@ void NPP_Shutdown( void )
236 ;
237 }
238
239 -NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
240 +NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc,
241 char* argn[], char* argv[], NPSavedData* saved )
242 {
243 NPError status;
244 @@ -579,7 +579,7 @@ NPError NPP_SetWindow( NPP instance, NPW
245 }
246
247 NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream,
248 - NPBool seekable, uint16 *stype )
249 + NPBool seekable, uint16_t *stype )
250 {
251 if( NULL == instance )
252 {
253 @@ -608,14 +608,14 @@ NPError NPP_NewStream( NPP instance, NPM
254 return NPERR_GENERIC_ERROR;
255 }
256
257 -int32 NPP_WriteReady( NPP instance, NPStream *stream )
258 +int32_t NPP_WriteReady( NPP instance, NPStream *stream )
259 {
260 /* TODO */
261 return 8*1024;
262 }
263
264 -int32 NPP_Write( NPP instance, NPStream *stream, int32 offset,
265 - int32 len, void *buffer )
266 +int32_t NPP_Write( NPP instance, NPStream *stream, int32_t offset,
267 + int32_t len, void *buffer )
268 {
269 /* TODO */
270 return len;
271 Index: vlc-1.0.5/projects/mozilla/vlcshell.h
272 ===================================================================
273 --- vlc-1.0.5.orig/projects/mozilla/vlcshell.h
274 +++ vlc-1.0.5/projects/mozilla/vlcshell.h
275 @@ -27,10 +27,10 @@
276 char * NPP_GetMIMEDescription( void );
277
278 NPError NPP_Initialize( void );
279 -jref NPP_GetJavaClass( void );
280 +void * NPP_GetJavaClass( void );
281 void NPP_Shutdown( void );
282
283 -NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc,
284 +NPError NPP_New( NPMIMEType pluginType, NPP instance, uint16_t mode, int16_t argc,
285 char* argn[], char* argv[], NPSavedData* saved );
286 NPError NPP_Destroy( NPP instance, NPSavedData** save );
287
288 @@ -40,20 +40,20 @@ NPError NPP_SetValue( NPP instance, NPNV
289 NPError NPP_SetWindow( NPP instance, NPWindow* window );
290
291 NPError NPP_NewStream( NPP instance, NPMIMEType type, NPStream *stream,
292 - NPBool seekable, uint16 *stype );
293 + NPBool seekable, uint16_t *stype );
294 NPError NPP_DestroyStream( NPP instance, NPStream *stream, NPError reason );
295 void NPP_StreamAsFile( NPP instance, NPStream *stream, const char* fname );
296
297 -int32 NPP_WriteReady( NPP instance, NPStream *stream );
298 -int32 NPP_Write( NPP instance, NPStream *stream, int32 offset,
299 - int32 len, void *buffer );
300 +int32_t NPP_WriteReady( NPP instance, NPStream *stream );
301 +int32_t NPP_Write( NPP instance, NPStream *stream, int32_t offset,
302 + int32_t len, void *buffer );
303
304 void NPP_URLNotify( NPP instance, const char* url,
305 NPReason reason, void* notifyData );
306 void NPP_Print( NPP instance, NPPrint* printInfo );
307
308 #ifdef XP_MACOSX
309 -int16 NPP_HandleEvent( NPP instance, void * event );
310 +int16_t NPP_HandleEvent( NPP instance, void * event );
311 #endif
312
313 #endif