GNOME Bugzilla – Bug 708229
Add function for checking if an address has already been allocated.
Last modified: 2014-02-25 22:27:57 UTC
Created attachment 255092 [details] [review] Patch with new function gst_rtsp_address_pool_is_allocated () It would be good to have a function for checking if an address has already been allocated from am address pool. Otherwise if a call to gst_rtsp_address_pool_reserve_address () returns NULL the caller has no way of knowing if it returned NULL because the address range was not in the pool to begin with or if it has already been reserved. I have made an implementation of such a function, gst_rtsp_address_pool_is_allocated . See attachement.
Created attachment 255538 [details] [review] Functionality added to gst_rtsp_address_pool_reserve_address After discussion with Wim I changed the implementation to add the functionality to gst_rtsp_address_pool_reserve_address() instead of adding a new function.
commit 7b0ad7c25f7f5eaa5ef8902a4ab299d57318edfd Author: Patrick Radizi <patrick.radizi at axis.com> Date: Tue Sep 24 17:30:18 2013 +0200 addresspool: return reason of failure Let gst_rtsp_address_pool_reserve_address() return the reason why the address could not be reserved. Fixes https://bugzilla.gnome.org/show_bug.cgi?id=708229