Re: Ogle on Solaris 8, Major success and a little tiny problem..

Vincent Cojot <[email protected]>
Newsgroups gmane.comp.video.ogle.devel
Message-ID <[email protected]>
Hello everyone,

Here is the patch for the probleme reported below.. It works for me in all
cases and it is taken from the xmms "main.c" source file. Tell me if it
works for you and if it should be integrated into ogle_gui-0.8.6..
The trouble is that it introduces a dependency upon gdk.h and gdkx.h..
Perhaps configure.in should check for them... Here is the patch:

[ ...................SNIP...................]
RCS file: src/RCS/main.c,v
retrieving revision 1.1
diff -u -r1.1 src/main.c
--- src/main.c  2002/09/03 18:07:55     1.1
+++ src/main.c  2002/09/03 19:37:35
@@ -25,6 +25,8 @@
 #include <locale.h>
 #include <string.h>

+#include <gdk/gdkx.h>
+#include <gdk/gdk.h>
 #include <gtk/gtk.h>

 #include <ogle/dvdcontrol.h>
@@ -79,6 +81,10 @@
   interpret_config();

   gtk_init(&argc, &argv);
+
+  gdk_rgb_init();
+  gtk_widget_set_default_colormap(gdk_rgb_get_cmap());
+  gtk_widget_set_default_visual(gdk_rgb_get_visual());

   // Initialize glade, and read in the glade file
   my_glade_setup();
[ ...................SNIP...................]

,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,
Vincent S. Cojot, Computer Engineering. STEP project. _.,-*~'`^`'~*-,._.,-*~
Ecole Polytechnique de Montreal, Comite Micro-Informatique. _.,-*~'`^`'~*-,.
Linux Xview/OpenLook resources page _.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'
http://step.polymtl.ca/~coyote  _.,-*~'`^`'~*-,._ [email protected]

They cannot scare me with their empty spaces
Between stars - on stars where no human race is
I have it in me so much nearer home
To scare myself with my own desert places.       - Robert Frost

On Sun, 1 Sep 2002, Vincent Cojot wrote:

>
> Hello evereyone,
>
> 	I'd like to report that I have rencountered the most complete
> success with Ogle on Solaris 8 02/02.. Of all of the 3 software dvd
> players I tried, it's the only one that came with all the features and
> that worked (at all). Complete Xine was a pain to build on Solaris and
> dvdnav always segfaulted; VideoLan client was slow (even on my box) and
> didn't have DVD navigation; Ogle won my respect, compiled easily and had
> very great performance. I find it really great that ogle makes use of
> MediaLib fr improved performance.. I tested it (with the CLI client) on:
> SunBlade 2000, (1*900Mhz US-III Cu) and XVR-1000 graphics card.
>
> Which brings me to the small problem I had: Starting ogle in GUI mode
> (built with --disable-nls but I don't think that this matters), gets this:
>
> ogle -u gui
> Build: SunOS 5.8 Generic_108528-15 sun4u sparc Sat Aug 31 23:41:13 MEST
> 2002 mlib solaris
> Runtime: SunOS 5.8 Generic_108528-15 sun4u sparc
> Note[ogle_ctrl]: ogle 0.8.5
> Debug[ogle_ctrl]: Started /usr/local/lib/ogle/ogle_gui with pid 20012
> Debug[ogle_ctrl]: Started /usr/local/lib/ogle/ogle_nav with pid 20013
> Debug[ogle_ctrl]: Started /usr/local/lib/ogle/ogle_mpeg_ps with pid 20014
> Debug[ogle_vout]: CLK_TCK: 100
> Debug[ogle_ctrl]: Started /usr/local/lib/ogle/ogle_vout with pid 20015
> Gdk-ERROR **: BadMatch (invalid parameter attributes)
>   serial 2324 error_code 8 request_code 62 minor_code 0
> Gdk-ERROR **: BadMatch (invalid parameter attributes)
>   serial 2334 error_code 8 request_code 62 minor_code 0
> [ ...snip... more stuff about childs exiting...]
>
> I -do- see a window border popping up but then it immediatly exits with
> the above message.
>
> I think the problem is this: On high-end Sun Graphics cards (Elite3d,
> Creator3d, XVR-500, XVR-1000, etc..) you get a default root window at 8bpp
> (No, I won't change it, it really is useful) and multiple 24bit visuals.
>
> The problem that happens is that ogle_gui seems to use the default root
> window for creating its items (buttons, menus) but this doesn't match the
> "best"  features of the display (which are 24bpp), most likely resulting
> in this problem.. (that's a gross explanation but since I don't know
> gdk/gtk I cannot do better). Proof of the problem is that the
> solaris-built ogle comes up fine in GUI mode on a remote machine with a
> default 24 root window (Linux box).  Xmms had the same kind of problem
> (although with different kind of numbers in the GDK errors) before 1.2.2
> on Solaris boxes with multiple visuals..
>
> I think they solved it by using things like this:
> dga.c:  dga_visual = gdk_visual_get_system();
> util.c: dblimg = gdk_image_new(GDK_IMAGE_NORMAL, gdk_visual_get_best(),
> img->width << 1, img->height << 1);
>
> I'll try to see what I can find in the ogle source but so far I have not
> found much gdk stuff, just gtk stuff..
>
> Thanks again for this great program and for its Solaris port..
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.