GNOME Bugzilla – Bug 171873
Hang when plugin handles non-existing file
Last modified: 2006-09-04 12:39:46 UTC
Open the test.html page, making sure that file:///tmp/dmp.mov doesn't exist. The totem-mozilla-viewer will hang trying to read from fd://0
Ronald, does the GStreamer plugin also block on reading stdin, or does it use O_NONBLOCK?
We use non-block mode.
For the GStreamer backend, the plugin would receive a destroy event when it's done, and we could just send a QUIT message and stop the helper app then. It would just work. I don't know what's required for the xine backend, but it cannot be much harder.
Bastien, if the file does not exist (or, in my testcase, the redirect file does not exist), I get an error dialog and then it hangs when you click OK. Removing the gdk_threads_init() in the viewer fixes this. Is that there for a reason or can I remove it?
I added the above, and it doesn't hang for me at all, so may be xine-only from here on.
This doesn't happen anymore with the current CVS, but we don't spawn the viewer at all. Maybe we should spawn it ASAP as in bug 350297 and whinge after we haven't had any data for a certain amount of time.
Closing as a dupe. *** This bug has been marked as a duplicate of 350297 ***