Author: everaldo
Date: 2007-06-07 17:48:36 -0400 (Thu, 07 Jun 2007)
New Revision: 78897

Modified:
   trunk/moon/plugin/ChangeLog
   trunk/moon/plugin/Makefile.am
   trunk/moon/plugin/moon-plugin.cpp
   trunk/moon/src/ffvideo.cpp
Log:
        * moon-plugin.cpp: Fix gtkplug creation fro 64bit systems. 

        * Makefile.am: Add -lavformat to link options.

        Thanks Grendel for this patches.

2007-06-07  Everaldo Canuto  <[EMAIL PROTECTED]>



Modified: trunk/moon/plugin/ChangeLog
===================================================================
--- trunk/moon/plugin/ChangeLog 2007-06-07 21:35:01 UTC (rev 78896)
+++ trunk/moon/plugin/ChangeLog 2007-06-07 21:48:36 UTC (rev 78897)
@@ -1,5 +1,13 @@
 2007-06-07  Everaldo Canuto  <[EMAIL PROTECTED]>
 
+       * moon-plugin.cpp: Fix gtkplug creation fro 64bit systems. 
+
+       * Makefile.am: Add -lavformat to link options.
+
+       Thanks Grendel for this patches.
+
+2007-06-07  Everaldo Canuto  <[EMAIL PROTECTED]>
+
        * moon-plugin.h: Change version number 0.99.0, SilverLight scripts 
searchs 
        for version > 0.95.1.
 

Modified: trunk/moon/plugin/Makefile.am
===================================================================
--- trunk/moon/plugin/Makefile.am       2007-06-07 21:35:01 UTC (rev 78896)
+++ trunk/moon/plugin/Makefile.am       2007-06-07 21:48:36 UTC (rev 78897)
@@ -11,7 +11,7 @@
        -L$(top_srcdir)/src/.libs \
        $(PLUGIN_LIBS)
 
-libmoonplugin_la_LIBADD = -lpthread -lmoon
+libmoonplugin_la_LIBADD = -lpthread -lmoon -lavformat
 
 libmoonplugin_la_SOURCES = \
        moon-plugin.cpp \

Modified: trunk/moon/plugin/moon-plugin.cpp
===================================================================
--- trunk/moon/plugin/moon-plugin.cpp   2007-06-07 21:35:01 UTC (rev 78896)
+++ trunk/moon/plugin/moon-plugin.cpp   2007-06-07 21:48:36 UTC (rev 78897)
@@ -196,7 +196,8 @@
        DEBUG ("*** creating window (%d,%d,%d,%d)", window->x, window->y, 
window->width, window->height);
 
        //  GtkPlug container and surface inside
-       this->container = gtk_plug_new ((GdkNativeWindow) window->window);
+       //this->container = gtk_plug_new ((GdkNativeWindow) window->window);
+       this->container = gtk_plug_new (reinterpret_cast <GdkNativeWindow> 
(window->window));
        this->canvas = canvas_new ();
        this->surface = surface_new (window->width, window->height);
        surface_attach (this->surface, this->canvas);

Modified: trunk/moon/src/ffvideo.cpp
===================================================================
--- trunk/moon/src/ffvideo.cpp  2007-06-07 21:35:01 UTC (rev 78896)
+++ trunk/moon/src/ffvideo.cpp  2007-06-07 21:48:36 UTC (rev 78897)
@@ -214,9 +214,9 @@
        if (av_open_input_file (&video->av_format_context, video->filename, 
NULL, 0, NULL) < 0){
                g_error ("ERROR: open input file `%s'\n", video->filename);
        }
-       if (video->av_format_context == (void *) &rtsp_demuxer){
-               g_error ("ERROR: stream info\n");
-       }
+       //if (video->av_format_context == (void *) &rtsp_demuxer){
+       //      g_error ("ERROR: stream info\n");
+       //}
 
        av_read_play (video->av_format_context);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to