Debian Codegraph @

gstreamer/src/tagsetter.ccg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2008 The gstreamermm Development Team
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 namespace Gst
21 {
22
23 void TagSetter::add_tag(Tag tag, const Glib::ValueBase& value,
24 TagMergeMode mode)
25 {
26 gst_tag_setter_add_tag_values(gobj(), (GstTagMergeMode) mode,
27 gstreamermm_get_stock_tag(tag), value.gobj(), (void*)0);
28 }
29
30 void TagSetter::add_tag(const Glib::ustring& tag, const Glib::ValueBase& value,
31 TagMergeMode mode)
32 {
33 gst_tag_setter_add_tag_values(gobj(), (GstTagMergeMode) mode, tag.c_str(),
34 value.gobj(), (void*)0);
35 }
36
37 void TagSetter::add_tag(Tag tag, const char* data, TagMergeMode mode)
38 {
39 gst_tag_setter_add_tags(gobj(), (GstTagMergeMode) mode,
40 gstreamermm_get_stock_tag(tag), data, (void*)0);
41 }
42
43 void TagSetter::add_tag(const Glib::ustring& tag, const char* data,
44 TagMergeMode mode)
45 {
46 gst_tag_setter_add_tags(gobj(), (GstTagMergeMode) mode, tag.c_str(),
47 data, (void*)0);
48 }
49
50 } //namespace Gst