Request for new annotation: “return value is just a success/failure indicator, hide it”
Submitted by Christian Fredrik Kalager Schaller
Link to original bug (#669016)
Description
We have a lot of APIs in GStreamer which in C returns a tuple of a boolean True/False value depending on if the call was successful and then the object in question. When accessing these API calls from languages like Python it would be nice to not get the boolean returned, if its true, and if it returns FAlse then have an exception be thrown.
The current behaviour looks really ugly as seen by this example code, where you have to access your object from python with a [X] value:
videostruct=Gst.Structure.from_string("video/x-raw")
remuxcaps.append_structure(videostruct[0])
Edited by Emmanuele Bassi