.ended attribute won't be part of MediaStream IDL from next release(http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream). Implementation should be deprecated in WebKit.
Created attachment 230155 [details]
.ended implementation is cleaned up. Not sure if this is the right way though.
Comment on attachment 230155 [details]
Clearing flags on attachment: 230155
Committed r167868: <http://trac.webkit.org/changeset/167868>
All reviewed patches have been landed. Closing bug.