mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-05 22:12:34 +00:00
App: Add custom constructors for AppSink and AppSrc
This commit is contained in:
parent
dba0f53b37
commit
0647ebb0c7
2 changed files with 70 additions and 0 deletions
35
sources/custom/AppSink.cs
Normal file
35
sources/custom/AppSink.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
//
|
||||
// AppSink.cs
|
||||
//
|
||||
// Authors:
|
||||
// Stephan Sundermann <stephansundermann@gmail.com>
|
||||
//
|
||||
// Copyright (C) 2014 Stephan Sundermann
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library 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
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
// 02110-1301 USA
|
||||
|
||||
namespace Gst.App {
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
partial class AppSink
|
||||
{
|
||||
public AppSink (String name) {
|
||||
var element = ElementFactory.Make ("appsink", name);
|
||||
Raw = element.Handle;
|
||||
}
|
||||
}
|
||||
}
|
35
sources/custom/AppSrc.cs
Normal file
35
sources/custom/AppSrc.cs
Normal file
|
@ -0,0 +1,35 @@
|
|||
//
|
||||
// AppSrc.cs
|
||||
//
|
||||
// Authors:
|
||||
// Stephan Sundermann <stephansundermann@gmail.com>
|
||||
//
|
||||
// Copyright (C) 2014 Stephan Sundermann
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
// License as published by the Free Software Foundation; either
|
||||
// version 2.1 of the License, or (at your option) any later version.
|
||||
//
|
||||
// This library 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
|
||||
// Lesser General Public License for more details.
|
||||
//
|
||||
// You should have received a copy of the GNU Lesser General Public
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
||||
// 02110-1301 USA
|
||||
|
||||
namespace Gst.App {
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
partial class AppSrc
|
||||
{
|
||||
public AppSrc (String name) {
|
||||
var element = ElementFactory.Make ("appsrc", name);
|
||||
Raw = element.Handle;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue