Source

pygame / lib / _camera_vidcapture.py

Diff from to

lib/_camera_vidcapture.py

                 # if there is a destination surface given, we blit onto that.
                 if dest_surf:
                     dest_surf.blit(surf, (0,0))
+                else:
+                    dest_surf = surf
                 return dest_surf
 
             else: