mario0alberto1 / gnome-mplayer

Automatically exported from code.google.com/p/gnome-mplayer
0 stars 0 forks source link

Unable to play http://radio1-uk.digitalgunfire.com:8000/ #486

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
This works fine with mplayer under OpenBSD/amd64 but in gnome-mplayer I get:

GNOME MPlayer v1.0.0
vo = (null) ao = (null)
Running with GIO support
Running with panscan enabled (mplayer svn r29565 or higher required)
Using volume of 0 from gnome-mplayer preference
Using softvol, since remember_softvol is enabled volume will be set to 7% of 0%
opening http://radio1-uk.digitalgunfire.com:8000
is block 0
is character 0
is reg 0
is dir 0
playlist 0
embedded in window id 0x0
playlist detection = 0
adding http://radio1-uk.digitalgunfire.com:8000 to playlist (cancel = 0)
Using match: type='signal',interface='com.gnome.mplayer'
Using match: type='signal',interface='org.gnome.SettingsDaemon'
Using match: type='signal',interface='org.gnome.SettingsDaemon.MediaKeys'
Proxy connections and Command connected
playing - mmshttp://radio1-uk.digitalgunfire.com:8000
is playlist 0
mplayer -quiet -slave -identify -softvol -volume 7 -framedrop -vf-pre 
yadif,softskip,scale -noconsolecontrols -noidle -osdlevel 0 -nomouseinput 
-cache 2000 -
wid 0x1c0003f -fs -ss 0 -ass -noembeddedfonts -ass-force-style 
FontName=Sans,Italic=0,Bold=0,Outline=0,Shadow=0 -ass-font-scale 1.00 
-ass-color ffffff00 -cha
nnels 2 -vf-add screenshot -dvd-device /dev/rcd0c -af-add 
export=/tmp/mplayer-af_exportcuvcbp:512 -user-agent Mozilla/5.0 -nomsgcolor 
-nomsgmodule mmshttp://
radio1-uk.digitalgunfire.com:8000 
current size = 360 x 16 
Spawn succeeded for filename mmshttp://radio1-uk.digitalgunfire.com:8000
MPlayer SVN-r32528-OpenBSD (C) 2000-2010 MPlayer Team

Playing mmshttp://radio1-uk.digitalgunfire.com:8000.
STREAM_ASF, URL: mmshttp://radio1-uk.digitalgunfire.com:8000
Resolving radio1-uk.digitalgunfire.com for AF_INET6...
ERROR: 
Resolving radio1-uk.digitalgunfire.com for AF_INET...
ERROR: Couldn't resolve name for AF_INET6: radio1-uk.digitalgunfire.com
Connecting to server radio1-uk.digitalgunfire.com[178.63.95.67]: 8000...

Exiting... (End of file)
Thread completing
playing - http://radio1-uk.digitalgunfire.com:8000
is playlist 0
mplayer -quiet -slave -identify -softvol -volume 7 -framedrop -vf-pre 
yadif,softskip,scale -noconsolecontrols -noidle -osdlevel 0 -nomouseinput 
-cache 2000 -
wid 0x1c0003f -fs -ss 0 -ass -noembeddedfonts -ass-force-style 
FontName=Sans,Italic=0,Bold=0,Outline=0,Shadow=0 -ass-font-scale 1.00 
-ass-color ffffff00 -cha
nnels 2 -vf-add screenshot -dvd-device /dev/rcd0c -af-add 
export=/tmp/mplayer-af_exportsducef:512 -user-agent Mozilla/5.0 -nomsgcolor 
-nomsgmodule http://rad
io1-uk.digitalgunfire.com:8000 
current size = 360 x 16 
Spawn succeeded for filename http://radio1-uk.digitalgunfire.com:8000
MPlayer SVN-r32528-OpenBSD (C) 2000-2010 MPlayer Team

Playing http://radio1-uk.digitalgunfire.com:8000.
Resolving radio1-uk.digitalgunfire.com for AF_INET6...
ERROR: 
Resolving radio1-uk.digitalgunfire.com for AF_INET...
ERROR: Couldn't resolve name for AF_INET6: radio1-uk.digitalgunfire.com
Connecting to server radio1-uk.digitalgunfire.com[178.63.95.67]: 8000...

Cache size set to 2000 KBytes
^MCache fill:  0.00% (0 bytes)   ^MCache fill:  0.23% (4803 bytes)   

ERROR: Thread completing
shutting down threadquery for mmshttp://radio1-uk.digitalgunfire.com:8000 since 
threaddata->done is TRUE
shutting down threadquery for http://radio1-uk.digitalgunfire.com:8000 since 
threaddata->done is TRUE

And coredumps under OpenBSD/sparc64:

(gdb) bt
#0  0x000000020498f5a8 in g_ascii_strncasecmp () from
/usr/local/lib/libglib-2.0.so.2600.0
#1  0x000000000012ede4 in device_name (filename=0x89514f7700000001
<Address 0x89514f7700000001 out of bounds>) at support.c:1179
#2  0x000000000013291c in streaming_media (uri=dwarf2_read_address:
Corrupted DWARF expression.) at support.c:1121
#3  0x00000000001230ec in set_progress_value (data=0x201016000) at gui.c:577
#4  0x0000000204967900 in g_source_is_destroyed () from
/usr/local/lib/libglib-2.0.so.2600.0
#5  0x0000000204967900 in g_source_is_destroyed () from
/usr/local/lib/libglib-2.0.so.2600.0

Original issue reported on code.google.com by federico...@gmail.com on 16 Feb 2011 at 1:14

GoogleCodeExporter commented 8 years ago
This patch seems to fix it for me, although I didn't get the segfault like you 
did...

Can you also try the SVN code and see if that works better. 

Index: src/thread.c
===================================================================
--- src/thread.c    (revision 1867)
+++ src/thread.c    (working copy)
@@ -1309,7 +1309,7 @@
         argv[arg++] = g_strdup_printf("QuickTime/7.6.9");
     } else {
         argv[arg++] = g_strdup_printf("-user-agent");
-        argv[arg++] = g_strdup_printf("Mozilla/5.0");
+        argv[arg++] = g_strdup_printf("GnomeMplayer/" VERSION);
     }

     /* disable msg stuff to make sure extra console characters don't mess around */

Original comment by kdeko...@gmail.com on 16 Feb 2011 at 1:53

GoogleCodeExporter commented 8 years ago
Hi, 

This fixes the problem for me too.

The segfault I was getting is on sparc64, which is a way more picky about 
memory alignment than i386

Original comment by dco...@gmail.com on 16 Feb 2011 at 2:38

GoogleCodeExporter commented 8 years ago
Great... yeah I used to have a Sparc and remember how picky they were about 
certain things.. I still have the machine, but it is to slow to do anything 
with. It is an Ultra/1 I think.

Original comment by kdeko...@gmail.com on 16 Feb 2011 at 2:40