Hi,
When I close window in windows, it will show:
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
There may be some problem in closing resource.
btw, scrcpy works well on windows.
PS C:\Users\YuChenLin\Downloads\scrcpy-win64> .\scrcpy.exe
scrcpy-server.jar: 1 file pushed.
INFO: Initial texture: 1080x2280
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
PS C:\Users\YuChenLin\Downloads\scrcpy-win64> .\scrcpy.exe --version
scrcpy v1.5
dependencies:
- SDL 2.0.9
- libavcodec 58.18.100
- libavformat 58.12.100
- libavutil 56.14.100
PS C:\Users\YuChenLin\Downloads\scrcpy-win64>
windows 10 v1803
Thanks,
yuchenlin
Thank you. There is this warning for a long time (since this FFmpeg commit), I never investigated before.
So now, I did, and it's fixed on master.
Sorry to report the same problem on Windows 10 Home 10.0.17134 Build 17134, x64-based PC w/ scrcpy-win64-v1.5.zip when using the wireless feature (over TCP/IP) and closing scrcpy using the X above the mirrored display of a Galaxy S5 SM-G900M running haggertk's Unofficial S5 klte LineageOS 16.0 build 2018-12-10.
BTW it does not say how to close scrcpy in https://github.com/Genymobile/scrcpy > README.md.
Or is it better with a command-line argument? Which one would that be?
Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\adb\scrcpy-win64>adb connect 192.168.1.2:5555
connected to 192.168.1.2:5555
C:\adb\scrcpy-win64>scrcpy
scrcpy-server.jar: 1 file pushed. 0.2 MB/s (19178 bytes in 0.082s)
INFO: Initial texture: 1080x1920
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
C:\adb\scrcpy-win64>

Edit: Using scrcpy via USB, I got the same "Invalid return value 0 for stream protocol" after closing it:
Microsoft Windows [Version 10.0.17134.472]
(c) 2018 Microsoft Corporation. All rights reserved.
C:\adb\scrcpy-win64>scrcpy -r scrcpy_USB-01.mp4
daemon not running; starting now at tcp:5037
daemon started successfully
scrcpy-server.jar: 1 file pushed. 0.2 MB/s (19178 bytes in 0.100s)
INFO: Initial texture: 1080x1920
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
C:\adb\scrcpy-win64>
@curiousrom it is fixed in master so the fix will be included in the next release (https://github.com/Genymobile/scrcpy/commit/2876463d394c3bc4dc239a605e65ebab75598353).
it does not say how to close scrcpy
Just close the window. You can even unplug the cable or disconnect adb.