Some fixes
authorWim Taymans <wim.taymans@gmail.com>
Tue, 1 Jan 2002 13:55:46 +0000 (13:55 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Tue, 1 Jan 2002 13:55:46 +0000 (13:55 +0000)
Original commit message from CVS:
Some fixes

test/bufspeed/gstbuffer.h
test/lat.c
test/testspeed.c

index d3a5a87..4c78d78 100644 (file)
@@ -85,9 +85,6 @@ typedef enum {
   GST_BUFFER_ORIGINAL,
   GST_BUFFER_DONTFREE,
 
-  GST_BUFFER_FLUSH,
-  GST_BUFFER_EOS,
-  GST_BUFFER_DISCONTINUOUS,
 } GstBufferFlags;
 
 
index f5f4c71..ec3ae7d 100644 (file)
@@ -86,6 +86,10 @@ GstPipeline *simple(int argc, int argi, char *argv[]) {
     return NULL;
   }
   idents = atoi(argv[argi]);
+  if ((argc - argi) == 2) {
+    gst_schedulerfactory_set_default_name (argv[argi+1]);
+  }
+
   pipeline = GST_PIPELINE(gst_pipeline_new("pipeline"));
   g_return_val_if_fail(pipeline != NULL,NULL);
 
@@ -111,6 +115,10 @@ GstPipeline *queue(int argc, int argi, char *argv[]) {
   }
   idents = atoi(argv[argi]);
 
+  if ((argc - argi) == 2) {
+    gst_schedulerfactory_set_default_name (argv[argi+1]);
+  }
+
   pipeline = GST_PIPELINE(gst_pipeline_new("pipeline"));
   g_return_val_if_fail(pipeline != NULL,NULL);
 
@@ -159,8 +167,8 @@ struct test {
 };
 
 static struct test tests[] = {
-  {"simple", "ident_count", simple},
-  {"queue", "ident_count", queue},
+  {"simple", "ident_count [scheduler_name]", simple},
+  {"queue", "ident_count [scheduler_name]", queue},
   {NULL, NULL, NULL}
 };
 
index ff79669..a5fa696 100644 (file)
@@ -36,7 +36,7 @@ int main(int argc, char **argv)
     gtk_signal_connect(GTK_OBJECT(button), "clicked", gtk_main_quit, NULL);
     gtk_widget_show(button);
     
-    disksrc = gst_elementfactory_make("disksrc", "disksrc");
+    disksrc = gst_elementfactory_make("filesrc", "filesrc");
     mad = gst_elementfactory_make("mad", "mad");
     stereo2mono = gst_elementfactory_make("stereo2mono", "stereo2mono");
     speed = gst_elementfactory_make("speed", "speed");