Re: [Mplayerplug-in-devel] Xfree crashes
Brought to you by:
kdekorte
From: Kevin D. <kde...@ya...> - 2004-03-27 16:55:16
|
Lukas, Well I didn't see the crash in my testing. I had a media file (about 30 secons long) loop for about 15 mins... but on Alex's suggestion I made this patch... seems to give me the same results, of not crashing.. diff -C2 -d -r1.81 -r1.82 *** plugin-threads.cpp 26 Mar 2004 18:09:48 -0000 1.81 --- plugin-threads.cpp 27 Mar 2004 16:41:49 -0000 1.82 *************** *** 46,49 **** --- 46,58 ---- */ + gboolean mediacallback(void *data) + { + nsPluginInstance *instance; + + instance = (nsPluginInstance *) data; + NPN_GetURL(instance->mInstance, + instance->mediaCompleteCallback, "_self"); + return FALSE; + } void pthread_suspend(int msec) *************** *** 1326,1331 **** // call media complete when we are done with the playlist if (local_td->instance->mediaCompleteCallback != NULL) { ! NPN_GetURL(local_td->instance->mInstance, ! local_td->instance->mediaCompleteCallback, "_self"); } --- 1335,1339 ---- // call media complete when we are done with the playlist if (local_td->instance->mediaCompleteCallback != NULL) { ! g_idle_add(mediacallback, local_td->instance); } Kevin On Saturday 27 March 2004 09:33 am, Lukas Demetz wrote: > Kevin, > > it occours during media change... most of the time when playing has > finished. > > Lukas Demetz > > > -----Original Message----- > > From: mpl...@li... > > [mailto:mpl...@li...] On Behalf Of > > Kevin DeKorte > > Sent: Saturday, March 27, 2004 5:06 PM > > To: Lukas Demetz > > Cc: mpl...@li... > > Subject: Re: [Mplayerplug-in-devel] Xfree crashes > > > > Lukas, > > > > Well the code you have is the most current. And is free from crashes as > > far as > > I know. Although, I have not done heavy testing on the code yet. Just a > > few > > things to see if it works... > > > > Does the crash occur on a media switch or during a media play? > > > > Kevin > > > > On Saturday 27 March 2004 08:41 am, Lukas Demetz wrote: > > > Kevin, > > > > > > sorry, did not understand you correctly. Here are the last lines you > > > > mean: > > > ----------- > > > Fix case where showcontrols = 0 and fullscreen = 1 and media > > > > ends. > > > > > No wa > > > y to get out. > > > Added "whatoptions.sh" to help find out about mozilla > > > 2.50 > > > ----------- > > > > > > For 2., no I don't use Mediaplayer.controls.play(). For what belongs to > > > JavaScript, I only use onMediaComplete(), and that calls a function > > > that goes to another URL - a JavaScript redirect, that is. > > > > > > Lukas Demetz > > > > > > > -----Original Message----- > > > > From: Kevin DeKorte [mailto:kde...@ya...] > > > > Sent: Saturday, March 27, 2004 4:32 PM > > > > To: mpl...@li... > > > > Cc: Lukas Demetz > > > > Subject: Re: [Mplayerplug-in-devel] Xfree crashes > > > > > > > > Lukas, > > > > > > > > You didn't answer 2. Mediaplayer.controls.play() is what I am > > > > looking > > > > > > for or > > > > something like it. > > > > > > > > From the ChangeLog I want the last line of the development section > > > > right > > > > > > above > > > > the 2.50 (last change is always at the bottom of the list) > > > > > > > > Kevin > > > > > > > > On Saturday 27 March 2004 07:58 am, Lukas Demetz wrote: > > > > > 1. Yes, I'm using the onMediaComplete JavaScript thing. > > > > > > > > > > 3. Do you mean the first line(s)? : > > > > > ------------------snip---------- > > > > > Development > > > > > Quit mplayer when "everything done" message is sent from > > > > > mplayer Clean up memory in plugin-threads.cpp > > > > > Support onMediaComplete event in embed tag > > > > > Internally we know, media percent and media length in > > > > seconds > > > > > > > Javascript methods: getTime(), getDuration(), > > > > getPercent() > > > > > > > Updated INSTALL instructions to match website > > > > > Support onEndOfStream event in embed tag, same code as > > > > > onMediaComplete > > > > > Added mediaprogress bar to GUI, although some media types > > > > can't > > > > > > use > > > > > > > > > it, > > > > > QT for example > > > > > --------------------snip------------ > > > > > > > > > > 4. Yes, it's XFree86 4.1 > > > > > > > > > > > > > > > > > > > > Lukas Demetz > > > > > > > > > > > -----Original Message----- > > > > > > From: mpl...@li... > > > > > > [mailto:mpl...@li...] On > > > > Behalf > > > > > > > > Of Kevin DeKorte > > > > > > Sent: Saturday, March 27, 2004 3:11 PM > > > > > > To: mpl...@li... > > > > > > Cc: Lukas Demetz > > > > > > Subject: Re: [Mplayerplug-in-devel] Xfree crashes > > > > > > > > > > > > Lukas, > > > > > > > > > > > > Couple of questions > > > > > > > > > > > > 1. Are you using any javascript? > > > > > > 2. If so are you using the "controls"? (this is the only place > > > > where > > > > > > > > crashes > > > > > > have been occuring recently) > > > > > > 3. What is the last line in the Development section of > > > > > > "ChangeLog" > > > > > > > > this > > > > > > > > > > will > > > > > > tell me what CVS version you have > > > > > > 4. Are you running XFree86 or some other X like XDirectFB? > > > > > > 5. There are tips in the mailing list archive about how to change > > > > the > > > > > > > > mozilla > > > > > > script to get error output. > > > > > > 6. You can run firefox with the -g option to run it under gdb. > > > > > > > > > > > > > > > > > > Kevin > > > > > > > > > > > > On Saturday 27 March 2004 02:52 am, Lukas Demetz wrote: > > > > > > > Hi there, > > > > > > > > > > > > > > first of all, great job, the onMediaComplete JavaScript thingie > > > > > > > > works > > > > > > > > > > > perfectly. I've just upgraded my test system to the actual cvs > > > > of > > > > > > > > mplayer > > > > > > > > > > > > > and mplayerplug-in. > > > > > > > > > > > > > > Regrettably, I have some strange problems now regarding X. Be > > > > > > > > advised > > > > > > > > > > that > > > > > > > > > > > > > I cannot, at the moment, reconstruct these crashes, but it > > > > > > > seems > > > > > > > > that, > > > > > > > > > > > after I play some media files with mplayerplug-in (the range I > > > > > > > > observed > > > > > > > > > > was > > > > > > > > > > > > > between 1 and 5 videos), the whole X crashes. HOWEVER, it could > > > > > > > > simply > > > > > > > > > > also > > > > > > > > > > > > > be only mozilla that crashes, because X will terminate if > > > > mozilla > > > > > > does > > > > > > > > > > so > > > > > > > > > > > > > (here by me). > > > > > > > > > > > > > > Please tell me how I can contribute to locate an eventual bug. > > > > > > > > > > > > > > > > > > > > > > > > > > > > Lukas Demetz > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > > > > > Free Linux tutorial presented by Daniel Robbins, President and > > > > CEO > > > > > > of > > > > > > > > > > > GenToo technologies. Learn everything from fundamentals to > > > > system > > > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > > > > > > > > > _______________________________________________ > > > > > > > Mplayerplug-in-devel mailing list > > > > > > > Mpl...@li... > > > > > > > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in- > > > > devel > > > > > > > > ------------------------------------------------------- > > > > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > > > > Free Linux tutorial presented by Daniel Robbins, President and > > > > > > CEO > > > > of > > > > > > > > GenToo technologies. Learn everything from fundamentals to system > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > > > > > > _______________________________________________ > > > > > > Mplayerplug-in-devel mailing list > > > > > > Mpl...@li... > > > > > > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.Net email is sponsored by: IBM Linux Tutorials > > > > > Free Linux tutorial presented by Daniel Robbins, President and CEO > > > > of > > > > > > > GenToo technologies. Learn everything from fundamentals to system > > > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > > > > > > _______________________________________________ > > > > > Mplayerplug-in-devel mailing list > > > > > Mpl...@li... > > > > > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel > > > > ------------------------------------------------------- > > This SF.Net email is sponsored by: IBM Linux Tutorials > > Free Linux tutorial presented by Daniel Robbins, President and CEO of > > GenToo technologies. Learn everything from fundamentals to system > > administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click > > _______________________________________________ > > Mplayerplug-in-devel mailing list > > Mpl...@li... > > https://lists.sourceforge.net/lists/listinfo/mplayerplug-in-devel |