rygel r342 - trunk/src/plugins/test
- From: zeeshanak svn gnome org
- To: svn-commits-list gnome org
- Subject: rygel r342 - trunk/src/plugins/test
- Date: Sun, 14 Dec 2008 20:22:08 +0000 (UTC)
Author: zeeshanak
Date: Sun Dec 14 20:22:08 2008
New Revision: 342
URL: http://svn.gnome.org/viewvc/rygel?rev=342&view=rev
Log:
Tell audiotestsrc to behave like a live source.
Modified:
trunk/src/plugins/test/rygel-test-audio-item.vala
Modified: trunk/src/plugins/test/rygel-test-audio-item.vala
==============================================================================
--- trunk/src/plugins/test/rygel-test-audio-item.vala (original)
+++ trunk/src/plugins/test/rygel-test-audio-item.vala Sun Dec 14 20:22:08 2008
@@ -82,13 +82,16 @@
private Element create_gst_source () throws Error {
Bin bin = new Bin (this.title);
- Element src = ElementFactory.make ("audiotestsrc", null);
+ dynamic Element src = ElementFactory.make ("audiotestsrc", null);
Element encoder = ElementFactory.make ("wavenc", null);
if (src == null || encoder == null) {
throw new GstStreamError.MISSING_PLUGIN ("Required plugin missing");
}
+ // Tell the source to behave like a live source
+ src.is_live = true;
+
// Add elements to our source bin
bin.add_many (src, encoder);
// Link them
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]