gst-launch,test: Use new API
[profile/ivi/rygel.git] / src / plugins / gst-launch / rygel-gst-launch-audio-item.vala
1 /*
2  * Copyright (C) 2009 Thijs Vermeir <thijsvermeir@gmail.com>
3  * Copyright (C) 2010 Nokia Corporation.
4  *
5  * Author: Thijs Vermeir <thijsvermeir@gmail.com>
6  * Author: Zeeshan Ali (Khattak) <zeeshanak@gnome.org>
7  *                               <zeeshan.ali@nokia.com>
8  *
9  * This file is part of Rygel.
10  *
11  * Rygel is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU Lesser General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version.
15  *
16  * Rygel is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
19  * GNU Lesser General Public License for more details.
20  *
21  * You should have received a copy of the GNU Lesser General Public License
22  * along with this program; if not, write to the Free Software Foundation,
23  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24  */
25
26 using Gst;
27
28 /**
29  * Audio item that serves data from a gst-launch commandline.
30  */
31 public class Rygel.GstLaunch.AudioItem : Rygel.AudioItem, Item {
32     public string launch_line { get; protected set; }
33
34     public AudioItem (string         id,
35                       MediaContainer parent,
36                       string         title,
37                       string         mime_type,
38                       string         launch_line) {
39         base (id, parent, title);
40
41         this.mime_type = mime_type;
42         this.launch_line = launch_line;
43     }
44
45     public override Element? create_stream_source (string? host_ip) {
46         return this.create_source ();
47     }
48 }