On Wednesday, 24. May 2006 11:40, strk wrote:
> I've hopefully fixed the file_opener_callback stuff
> (haven't tested it). Others are warning, most of which
> from qt3.  Please try again now.

Still not compiling here:

klash.cpp: In function 'int main(int, char**)':
klash.cpp:435: error: invalid initialization of reference of type 'const 
gnash::URL&' from expression of type 'const char*'
../../server/gnash.h:197: error: in passing argument 1 of 'void 
gnash::get_movie_info(const gnash::URL&, int*, int*, int*, float*, int*, 
int*)'
klash.cpp:495: error: invalid initialization of reference of type 'const 
gnash::URL&' from expression of type 'const char*'
../../server/gnash.h:282: error: in passing argument 1 
of 'gnash::movie_definition* gnash::create_library_movie(const gnash::URL&)'

The fix is simple though (attached).

LLaP
bero
--- gnash/plugin/klash/klash.cpp.ark	2006-05-24 12:00:37.000000000 +0200
+++ gnash/plugin/klash/klash.cpp	2006-05-24 12:02:44.000000000 +0200
@@ -67,6 +67,7 @@
 #include "tu_types.h"
 #include "xmlsocket.h"
 #include "movie_definition.h"
+#include "URL.h"
 
 using namespace std;
 using namespace gnash;
@@ -431,7 +432,7 @@
     int	movie_width = 0;
     int	movie_height = 0;
     float	movie_fps = 30.0f;
-    gnash::get_movie_info(infiles[0], &movie_version, &movie_width,
+    gnash::get_movie_info(URL(infiles[0]), &movie_version, &movie_width,
                           &movie_height, &movie_fps, NULL, NULL);
     if (movie_version == 0) {
         fprintf(stderr, "error: can't get info about %s\n", infiles[0]);
@@ -492,7 +493,7 @@
     }
     
     // Load the actual movie.
-    gnash::movie_definition*	md = gnash::create_library_movie(infiles[0]);
+    gnash::movie_definition*	md = gnash::create_library_movie(URL(infiles[0]));
     if (md == NULL) {
         fprintf(stderr, "error: can't create a movie from '%s'\n", infiles[0]);
         exit(1);
_______________________________________________
Gnash mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/gnash

Reply via email to