GNOME Bugzilla – Bug 520888
udpsrc has some issues on Windows
Last modified: 2008-03-07 10:01:53 UTC
Please describe the problem: After the move to GstPoll it seems that controllable is set to FALSE on Windows, which makes shutdown deadlock. This works fine with this set to TRUE (like on non-Windows) with the latest patch from #520671 (which makes GstPoll work on Windows). Another slightly smaller issue is that WSACleanup is not called properly balanced with WSAStartup. Steps to reproduce: Actual results: Expected results: Does this happen every time? Other information:
Created attachment 106737 [details] [review] udpsrc_make_gst_poll_controllable_on_win32 Fix for the first issue.
Created attachment 106738 [details] [review] udpsrc_win32_teardown_fix Fix for the second and final issue.
Patch by: Ole André Vadla Ravnås <ole.andre.ravnas@tandberg.com> * gst/udp/gstudpsrc.c: (gst_udpsrc_finalize), (gst_udpsrc_start), (gst_udpsrc_stop): Properly balance WSA_Cleanup with WSA_Startup. Also make the poll controllable on windows. Fixes #520888.