Debian Codegraph @

gstreamer/src/audiocdsrc.ccg

raw
1 /* gstreamermm - a C++ wrapper for gstreamer
2 *
3 * Copyright 2016 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 #include <gstreamermm/buffer.h>
21 _PINCLUDE(gstreamermm/private/pushsrc_p.h)
22
23 namespace Gst
24 {
25
26 bool AudioCdSrc::add_track(guint num, guint start, guint end, bool is_audio,
27 const Gst::TagList& tags)
28 {
29 GstAudioCdSrcTrack track;
30
31 track.num = num;
32 track.start = start;
33 track.end = end;
34 track.is_audio = is_audio;
35
36 if (tags)
37 track.tags = tags.gobj_copy();
38
39 return gst_audio_cd_src_add_track(gobj(), &track);
40 }
41
42 } // namespace Gst