{"action":"created","issue":{"url":"https://api.github.com/repos/Itseez/opencv/issues/5221","labels_url":"https://api.github.com/repos/Itseez/opencv/issues/5221/labels{/name}","comments_url":"https://api.github.com/repos/Itseez/opencv/issues/5221/comments","events_url":"https://api.github.com/repos/Itseez/opencv/issues/5221/events","html_url":"https://github.com/Itseez/opencv/issues/5221","id":101872692,"number":5221,"title":"videoio last frame forever when usb camera disconnected","user":{"login":"fogelton","id":1250236,"avatar_url":"https://avatars.githubusercontent.com/u/1250236?v=3","gravatar_id":"","url":"https://api.github.com/users/fogelton","html_url":"https://github.com/fogelton","followers_url":"https://api.github.com/users/fogelton/followers","following_url":"https://api.github.com/users/fogelton/following{/other_user}","gists_url":"https://api.github.com/users/fogelton/gists{/gist_id}","starred_url":"https://api.github.com/users/fogelton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fogelton/subscriptions","organizations_url":"https://api.github.com/users/fogelton/orgs","repos_url":"https://api.github.com/users/fogelton/repos","events_url":"https://api.github.com/users/fogelton/events{/privacy}","received_events_url":"https://api.github.com/users/fogelton/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-19T11:44:11Z","updated_at":"2015-08-20T08:26:09Z","closed_at":null,"body":"Hi I am using opencv 3.0.0 compiled under mingw 4.9.2 and I found out a bug, when the camera is disconnected no empty frame is returned but instead the last captured image from the camera, over and over again. There is no way how to find out if the camera was disconnected even .opened still returns true over the camera."},"comment":{"url":"https://api.github.com/repos/Itseez/opencv/issues/comments/132934664","html_url":"https://github.com/Itseez/opencv/issues/5221#issuecomment-132934664","issue_url":"https://api.github.com/repos/Itseez/opencv/issues/5221","id":132934664,"user":{"login":"PhilLab","id":1710255,"avatar_url":"https://avatars.githubusercontent.com/u/1710255?v=3","gravatar_id":"","url":"https://api.github.com/users/PhilLab","html_url":"https://github.com/PhilLab","followers_url":"https://api.github.com/users/PhilLab/followers","following_url":"https://api.github.com/users/PhilLab/following{/other_user}","gists_url":"https://api.github.com/users/PhilLab/gists{/gist_id}","starred_url":"https://api.github.com/users/PhilLab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PhilLab/subscriptions","organizations_url":"https://api.github.com/users/PhilLab/orgs","repos_url":"https://api.github.com/users/PhilLab/repos","events_url":"https://api.github.com/users/PhilLab/events{/privacy}","received_events_url":"https://api.github.com/users/PhilLab/received_events","type":"User","site_admin":false},"created_at":"2015-08-20T08:26:09Z","updated_at":"2015-08-20T08:26:09Z","body":"Can you determine which camera backend is used? As you can see in [the code](https://github.com/Itseez/opencv/blob/master/modules/videoio/src/cap.cpp#L145-L260), OpenCV tries a bunch of different ways to access the camera. which path does it take in your case?"}}