Switch event type when a capture device has been stopped from the render process. This make sure that RtcVideoCapturer is notified when the screen share Stop button has been called or a LocalMediaStream has been stopped.

https://code.google.com/p/webrtc/issues/detail?id=960

BUG=226400
TEST= Enable logging on rtc_video_capture. Navigate to http://src.chromium.org/chrome/trunk/src/chrome/test/data/webrtc/manual/peerconnection.html. Press the Request GetUserMedia button. Open up a JS console and type gLocalStream.stop() and verify that RtcVideoCapturer::OnStateChange 0 is triggered.
On Linux, Repeat starting the video camera. Unplug the USB device and verify that RtcVideoCapturer::OnStateChange 2 is triggered.

Review URL: https://chromiumcodereview.appspot.com/13616004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@193911 0039d316-1c4b-4281-b951-d872f2087c98
11 files changed