From: Robt W. F. Jr. <rw...@li...> - 2005-05-26 00:42:21
|
Using gxine-0.4.5 ./configure CFLAGS=3D"-DDEBUG -DLOG" --/prefix=3D/usr cd browser-plugin make This is the gxineplugin.so debug output (/tmp/t.log) when I go to news.yahoo.com/video and clicked on one of the video links. NPP_Initialize: NPP_New: plugin: argument 'ID'=3D'MediaPlayer' plugin: argument 'NAME'=3D'MediaPlayer' plugin: argument 'TYPE'=3D'application/x-mplayer2' plugin: argument 'SRC'=3D'http://mediaframe.yahoo.com/buildlist.asp?p=3Dnew= s&a=3D0,30&f=3D95448456&t=3DBush+Plans+to+Give+More+to+Palestinians&sid=3D1= 5523047&m=3Dwmv&r=3D300&l=3DSAV&ext=3D1' got src url http://mediaframe.yahoo.com/buildlist.asp?p=3Dnews&a=3D0,30&f= =3D95448456&t=3DBush+Plans+to+Give+More+to+Palestinians&sid=3D15523047&m=3D= wmv&r=3D300&l=3DSAV&ext=3D1 plugin: argument 'WIDTH'=3D'320' plugin: argument 'HEIGHT'=3D'306' plugin: argument 'AutoStart'=3D'1' plugin: argument 'AutoSize'=3D'0' plugin: argument 'ShowControls'=3D'1' plugin: argument 'ShowTracker'=3D'1' plugin: argument 'ShowDisplay'=3D'0' plugin: argument 'ShowStatusBar'=3D'1' plugin: argument 'EnableContextMenu'=3D'0' plugin: argument 'AnimationAtStart'=3D'0' plugin: argument 'TransparentAtStart'=3D'1' plugin: NPP_New done NPP_SetWindow: 42 x=3D0, y=3D0, w=3D320, h=3D306 window =3D 14680083 NPERR_NO_ERROR NPP_SetWindow: done. NPP_NewStream: NPP_NewStream: url is http://mediaframe.yahoo.com/buildlist.asp?p=3Dnews&a= =3D0,30&f=3D95448456&t=3DBush+Plans+to+Give+More+to+Palestinians&sid=3D1552= 3047&m=3Dwmv&r=3D300&l=3DSAV&ext=3D1=20 NPP_NewStream: copying url because emu_mode=3D0, globals.url=3Dhttp://media= frame.yahoo.com/buildlist.asp?p=3Dnews&a=3D0,30&f=3D95448456&t=3DBush+Plans= +to+Give+More+to+Palestinians&sid=3D15523047&m=3Dwmv&r=3D300&l=3DSAV&ext=3D1 >>>>>>>>Forking<<<<<<<<, child child 2 launch_gxine: exe =3D /usr/bin/gxine, arg =3D The code in browser-plugin/plugin.c NPError NPP_New(NPMIMEType pluginType, NPP instance, uint16 mode, int16 argc, char* argn[], char* argv[], NPSavedData* saved) { plugin_instance_t* this; xprintf("NPP_New:\n"); [snip] /* parse args */ this->emu_mode =3D EMU_NONE; for (i=3D0; i<argc; i++) { xprintf ("plugin: argument '%s'=3D'%s'\n", argn[i], argv[i]); if (!strncmp (argn[i], "type", 4)) { if (!strncmp (argv[i], "video/x-ms-asf-plugin", 21)) { xprintf ("plugin: switching to mms_mode\n"); this->emu_mode =3D EMU_MPLAYER; } else if (!strncmp (argv[i], "application/x-mplayer2", 22)) { xprintf ("plugin: switching to mms_mode\n"); this->emu_mode =3D EMU_MPLAYER; } else if (!strncmp (argv[i], "video/quicktime", 15)) { xprintf ("plugin: switching to quicktime emulation mode\n"); this->emu_mode =3D EMU_QT; } else if (!strncmp (argv[i], "audio/x-pn-realaudio-plugin", 27)) { xprintf ("plugin: switching to real player emulation mode\n"); this->emu_mode =3D EMU_REAL; } } else if (!strcmp (argn[i], "name")) { if (!strcmp (argv[i], "nsplay")) { xprintf ("plugin: switching to mms_mode\n"); this->emu_mode =3D EMU_MPLAYER; } } else if (!strcasecmp (argn[i], "href")) { Sooo, my question is, "Shouldn't some of the strncmp's be strncasecmp??? Th= e TYPE and NAME are in uppercase=20 I used Opera to test this, not mozilla/firefox. Thank you. (I'm not a real C person). --=20 _______________________________________________ Check out the latest SMS services @ http://www.linuxmail.org This allows you to send and receive SMS through your mailbox. Powered by Outblaze |