mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-13 23:22:54 +00:00
Pad: Pad.Caps property now returns a GstCaps instead of an IntPtr
This commit is contained in:
parent
cd0c436ece
commit
86141ab5f1
2 changed files with 33 additions and 1 deletions
32
sources/custom/Pad.cs
Normal file
32
sources/custom/Pad.cs
Normal file
|
@ -0,0 +1,32 @@
|
|||
// Copyright (C) 2013 Stephan Sundermann <stephansundermann@gmail.com>
|
||||
//
|
||||
// This program is free software: you can redistribute it and/or modify
|
||||
// it under the terms of the GNU Affero General Public License as
|
||||
// published by the Free Software Foundation, either version 3 of the
|
||||
// License, or (at your option) any later version.
|
||||
//
|
||||
// This program is distributed in the hope that it will be useful,
|
||||
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
// GNU Affero General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Affero General Public License
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
namespace Gst {
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
partial class Pad
|
||||
{
|
||||
[GLib.Property ("caps")]
|
||||
public Gst.Caps Caps {
|
||||
get {
|
||||
GLib.Value val = GetProperty ("caps");
|
||||
Gst.Caps ret = new Gst.Caps ((IntPtr)val);
|
||||
val.Dispose ();
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -22,7 +22,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
<attr path="/api/namespace/callback[@cname='GstMessageFunc']" name="name">MessageFunc</attr>
|
||||
<attr path="/api/namespace/callback[@cname='GstQueryFunc']" name="name">QueryFunc</attr>
|
||||
<!-- No Conversion for GLib.Value -->
|
||||
<attr path="/api/namespace/object[@cname='GstPad']/property[@name='Caps']" name="type">gpointer</attr>
|
||||
<remove-node path="/api/namespace/object[@cname='GstPad']/property[@name='Caps']" />
|
||||
<!-- Error with array -->
|
||||
<attr path="/api/namespace/object[@cname='GstGlobal']/method[@cname='gst_formats_contains']" name="hidden">true</attr>
|
||||
<!-- MiniObject issues -->
|
||||
|
|
Loading…
Reference in a new issue