Chromium Code Reviews| Index: ui/file_manager/video_player/js/cast/cast_video_element.js |
| diff --git a/ui/file_manager/video_player/js/cast/cast_video_element.js b/ui/file_manager/video_player/js/cast/cast_video_element.js |
| index 0aa1f3fc5c18c4961a2a8550c6fef9a1c65398ad..700c8233b51ff08fe409d7400f22270e3c0882de 100644 |
| --- a/ui/file_manager/video_player/js/cast/cast_video_element.js |
| +++ b/ui/file_manager/video_player/js/cast/cast_video_element.js |
| @@ -349,8 +349,10 @@ CastVideoElement.prototype = /** @struct */ { |
| function() {}, |
| function(error) { |
| // Ignores session error, since session may already be closed. |
| - if (error.code !== chrome.cast.ErrorCode.SESSION_ERROR) |
| + if (error.code !== chrome.cast.ErrorCode.SESSION_ERROR && |
| + error.code !== chrome.cast.ErrorCode.INVALID_PARAMETER) { |
|
fukino
2016/05/18 05:02:21
bug fix: error code can be INVALID_PARAMETER as we
|
| this.onCastCommandError_(error); |
| + } |
| }.wrap(this)); |
| this.castMedia_.removeUpdateListener(this.onCastMediaUpdatedBound_); |