Debian Codegraph @

gstreamer/gstreamermm/parse.cc

raw symbols SCIP
1 // Generated by gmmproc 2.50.1 -- DO NOT MODIFY!
2
3
4 #include <glibmm.h>
5
6 #include <gstreamermm/parse.h>
7 #include <gstreamermm/private/parse_p.h>
8
9
10 /* gstreamermm - a C++ wrapper for gstreamer
11 *
12 * Copyright 2008 The gstreamermm Development Team
13 *
14 * This library is free software; you can redistribute it and/or
15 * modify it under the terms of the GNU Lesser General Public
16 * License as published by the Free Software Foundation; either
17 * version 2.1 of the License, or (at your option) any later version.
18 *
19 * This library is distributed in the hope that it will be useful,
20 * but WITHOUT ANY WARRANTY; without even the implied warranty of
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
22 * Lesser General Public License for more details.
23 *
24 * You should have received a copy of the GNU Lesser General Public
25 * License along with this library; if not, write to the Free
26 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
27 */
28
29 #include <gst/gst.h>
30 #include <gstreamermm/element.h>
31
32 namespace Gst
33 {
34
35 Glib::RefPtr<Gst::Element> Parse::launch(const Glib::ustring& pipeline_description)
36 {
37 GError* gerror = nullptr;
38 Glib::RefPtr<Gst::Element> retvalue = Glib::wrap(gst_parse_launch(pipeline_description.c_str(), &gerror));
39
40 if(gerror)
41 ::Glib::Error::throw_exception(gerror);
42
43 return retvalue;
44 }
45
46 Glib::RefPtr<Gst::Element> Parse::launchv(const gchar *argv[])
47 {
48 GError* gerror = nullptr;
49 Glib::RefPtr<Gst::Element> retvalue = Glib::wrap(gst_parse_launchv(argv, &gerror));
50
51 if(gerror)
52 ::Glib::Error::throw_exception(gerror);
53
54 return retvalue;
55 }
56
57 Glib::RefPtr<Gst::Element> Parse::create_bin(const Glib::ustring& bin_description, bool ghost_unconnected_pads)
58 {
59 GError* gerror = nullptr;
60 Glib::RefPtr<Gst::Element> retvalue = Glib::wrap(gst_parse_bin_from_description(bin_description.c_str(), ghost_unconnected_pads, &gerror));
61
62 if(gerror)
63 ::Glib::Error::throw_exception(gerror);
64
65 return retvalue;
66 }
67
68 } //namespace Gst
69
70 namespace
71 {
72 } // anonymous namespace
73
74
75 Gst::ParseError::ParseError(Gst::ParseError::Code error_code, const Glib::ustring& error_message)
76 :
77 Glib::Error (GST_PARSE_ERROR, error_code, error_message)
78 {}
79
80 Gst::ParseError::ParseError(GError* gobject)
81 :
82 Glib::Error (gobject)
83 {}
84
85 Gst::ParseError::Code Gst::ParseError::code() const
86 {
87 return static_cast<Code>(Glib::Error::code());
88 }
89
90 void Gst::ParseError::throw_func(GError* gobject)
91 {
92 throw Gst::ParseError(gobject);
93 }
94
95 // static
96 GType Glib::Value<Gst::ParseError::Code>::value_type()
97 {
98 return gst_parse_error_get_type();
99 }
100
101