This is slightly bad since this is a constructor; we can safely return here
because the C code has not executed the constructor yet.
As the function was deprecated anyway with an earlier commit, beaty doesn't
really matter.
Signed-off-by: Jens Georg <mail@jensge.org>
https://bugzilla.gnome.org/show_bug.cgi?id=722021
[Deprecated (since="0.21.5")]
public Player.wrap (Gst.Element playbin) {
- return_if_fail (playbin != null);
- return_if_fail (playbin.get_type ().name() == "GstPlayBin");
+ return_val_if_fail (playbin.get_type ().name() == "GstPlayBin", null);
this.playbin = playbin;
this.setup_playbin ();