summaryrefslogtreecommitdiff
path: root/testsuite
diff options
context:
space:
mode:
authorWim Taymans <wim.taymans@gmail.com>2002-06-02 15:44:25 +0000
committerWim Taymans <wim.taymans@gmail.com>2002-06-02 15:44:25 +0000
commit356aa743dc0c673cc8dbf4104ce3cfdd48a89ace (patch)
tree81d68230f858843989c2b1bfc413dc84359df41a /testsuite
parent37e7a7c5e2ef28474cef3cc7dec94dc582c59f57 (diff)
Make a switch for gnomevfssrc and filesrc
Original commit message from CVS: Make a switch for gnomevfssrc and filesrc
Diffstat (limited to 'testsuite')
-rw-r--r--testsuite/seeking/seek1.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/testsuite/seeking/seek1.c b/testsuite/seeking/seek1.c
index f0df6a6bb..f7841d01f 100644
--- a/testsuite/seeking/seek1.c
+++ b/testsuite/seeking/seek1.c
@@ -13,6 +13,9 @@ static GtkAdjustment *adjustment;
static guint update_id;
+#define SOURCE "gnomevfssrc"
+//#define SOURCE "filesrc"
+
#define UPDATE_INTERVAL 500
#define THREAD
@@ -63,7 +66,7 @@ make_parse_pipeline (const gchar *location)
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make ("filesrc", "src");
+ src = gst_element_factory_make (SOURCE, "src");
parser = gst_element_factory_make ("mpegparse", "parse");
fakesink = gst_element_factory_make ("fakesink", "sink");
g_object_set (G_OBJECT (fakesink), "sync", TRUE, NULL);
@@ -94,7 +97,7 @@ make_vorbis_pipeline (const gchar *location)
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make ("filesrc", "src");
+ src = gst_element_factory_make (SOURCE, "src");
decoder = gst_element_factory_make ("vorbisfile", "decoder");
audiosink = gst_element_factory_make ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
@@ -125,7 +128,7 @@ make_mp3_pipeline (const gchar *location)
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make ("filesrc", "src");
+ src = gst_element_factory_make (SOURCE, "src");
decoder = gst_element_factory_make ("mad", "dec");
osssink = gst_element_factory_make ("osssink", "sink");
@@ -159,7 +162,7 @@ make_avi_pipeline (const gchar *location)
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make ("filesrc", "src");
+ src = gst_element_factory_make (SOURCE, "src");
g_object_set (G_OBJECT (src), "location", location, NULL);
demux = gst_element_factory_make ("avidemux", "demux");
@@ -228,7 +231,7 @@ make_mpeg_pipeline (const gchar *location)
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make ("filesrc", "src");
+ src = gst_element_factory_make (SOURCE, "src");
g_object_set (G_OBJECT (src), "location", location, NULL);
demux = gst_element_factory_make ("mpegdemux", "demux");