Index: build/android/pylib/screenshot.py |
diff --git a/build/android/pylib/screenshot.py b/build/android/pylib/screenshot.py |
index d69bb9a7c6d8943874d7ef151bc1734919cb564b..e21d7560b6e5854193362701e91d7935073fca60 100644 |
--- a/build/android/pylib/screenshot.py |
+++ b/build/android/pylib/screenshot.py |
@@ -38,8 +38,8 @@ class VideoRecorder(object): |
self._is_started = False |
self._args = ['adb'] |
- if self._device.old_interface.GetDevice(): |
- self._args += ['-s', self._device.old_interface.GetDevice()] |
+ if str(self._device): |
+ self._args += ['-s', str(self._device)] |
self._args += ['shell', 'screenrecord', '--verbose'] |
self._args += ['--bit-rate', str(megabits_per_second * 1000 * 1000)] |
if size: |