i've emerged mplayer twice on new system builds and have not gotten it to work. i saw someone online tonight that had the same error so i'm wondering if there is a problem with the build - since i did have it working before the lastest ebuild. this was my commandline when it used to work: mplayer -gui -dvd 1 /dev/cdroms/cdrom0 -ao sdl with the commandline mplayer -gui i get the folowing error. Reading /usr/share/mplayer/codecs.conf: 31 audio & 81 video codecs font: can't open file: /home/demian/.mplayer/font/font.desc Font /usr/share/mplayer/font/font.desc loaded successfully! (206 chars) GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed. Gtk-WARNING **: gtk_type_create(): unknown parent type `21'. GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed. GLib-CRITICAL **: file ghash.c: line 152 (g_hash_table_insert): assertion `hash_table != NULL' failed. GLib-CRITICAL **: file ghash.c: line 138 (g_hash_table_lookup): assertion `hash_table != NULL' failed. GLib-CRITICAL **: file ghash.c: line 152 (g_hash_table_insert): assertion `hash_table != NULL' failed. Gtk-WARNING **: invalid cast from (NULL) pointer to `GtkLabel' Segmentation fault if i try player -dvd 1 /dev/cdroms/cdrom0, it says: (incidentally, i tried re-emerging mplayer and assured myslef that the library was installed). CPU vendor name: AuthenticAMD max cpuid level: 1 CPU: Advanced Micro Devices Athlon TB Thunderbird (Type: 6, Stepping: 2) extended cpuid-level: 6 CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 0 SSE2: 0 Compiled for x86 CPU with features: MMX MMX2 3DNow 3DNowEx MPlayer was compiled WITHOUT libdvdread support!
What happens when you remerge gtk and glib ?
to play a DVD you must have compiled in libdvdread support
To get mplayer to compile with dvd support you need to add "dvd" to your USE var. If you want mencoder you need to add "encode" to you USE var.
i got the same GLib-CRITICAL / ghash.c errors with the newest ebuild (0.90pre1). earlier versions (that means 0.60-rX) worked fine, so i don't think remerging gtk/glib would help anything. i didn't use dvd flag, i don't need it, but new player segfaults exactly the same way.
i tried reemergeing gtk and glib. i noticed glib was at 1.2.10-r4, so i upgraded it to 2.01-r2. this did not help with the errors. i then unmerged mplayer and libdvdread. i reemerged libdvdread and then mplayer with the use settings dvd and encode (which incidentally i did not need in previous e-builds). either reemerging mplayer with the new glib or the use settings fixed the error. i don't get the g-lib error now. mplayer is crashing on me, but it may be a configuration issue. it looked like it was still looking for /dev/dvd. i'll work on it later and report back. gotta head to work.
OK, the DVD problem can be because libdvdcss-1.1.1 was unmasked (WHY?). The GLIB problem ... try to unmerge gtk+-2.0 and glib-2.0, and remerge mlayer.
i'm not sure what fixed it specifically, but i got it working again by remerging gtk+ and (upgrading) glib to 2.01. unmerging libdvdread and mplayer and remerging them with the use settings (which werent needed in the past). the fix is somewhere within that process. nevertheless, i believe there is still a problem in how this is being built since i've seen this problem twice and others have seen it as well. don't know. incidentally, i linked /dev/dvd to /dev/cdroms/cdrom0 to fix that last problem i saw before heading to work. the command line included the path to the device, but it didn't seem to work for me.
after seeeing someone in irc with the problem tonight, i had them do what i did without the use settings change and it DID NOT work. he then tried the USE (dvd and encode) settings and it worked! i'll be damned. it was the use settings afterall. also, unmerging is not necessary. just reemerge mplayer and that's it.
Seems it was a bug in pre1 ... see if you still need "encode" in USE with pre2 ?
Latest pre's looks fine.