GNOME Bugzilla – Bug 441157
metadata reader times out when an error has been sent on the bus
Last modified: 2007-05-28 12:35:26 UTC
The metadata reader waits 5 seconds for the state change to PAUSED to complete, during which time it isn't handling bus messages. In some cases, we get an error and the state change doesn't complete, so the metadata reader pointlessly stalls for up to 5 seconds. Simple test case: cd metadata/ ./rhythmbox-metadata --load file://`pwd`/rb-metadata-gst.c should exit immediately, saying "this appears to be a text file". Currently, it: 1) takes over 5s 2) crashes on exit (oops)
Created attachment 88789 [details] [review] patch fixes the crash and the slowness, doesn't seem to break successful metadata reading.
Created attachment 88936 [details] [review] fix two leaks The patch looks good to me. This version fixes two memory leaks.
OK, committed (to trunk, at least). Thanks for the memory leak fixes.