diff --git a/main.c b/main.c
index e84d5b0..a199021 100644
--- a/main.c
+++ b/main.c
@@ -1,4 +1,4 @@
-/* gcc -o test -Wall -Werror `pkg-config --libs --cflags gstreamer-1.0` main.c */
+/* gcc -o test -Wall -Werror `pkg-config --libs --cflags gstreamer-0.10` main.c */
 /* ./test <uri> [ seek_msec ]*/
 
 #include <gst/gst.h>
@@ -34,7 +34,7 @@ main(int argc, char *argv [])
 
   gst_init(&argc, &argv);
 
-  pipeline = gst_element_factory_make("playbin", "playbin");
+  pipeline = gst_element_factory_make("playbin2", "playbin");
   if (!pipeline)
     {
       g_critical("could not create playbin2 pipeline");
@@ -46,7 +46,6 @@ main(int argc, char *argv [])
       seek_point = atoi(argv[2]);
     }
 
-  //  g_object_set(pipeline, "flags", 99, NULL);
   g_object_set(pipeline, "uri", argv[1], NULL);
 
   GstBus *bus = gst_pipeline_get_bus(GST_PIPELINE(pipeline));
@@ -64,10 +63,11 @@ static gint64
 get_duration(void)
 {
   gboolean right;
+  GstFormat format = GST_FORMAT_TIME;
 
   duration = -1;
 
-  right = gst_element_query_duration(pipeline, GST_FORMAT_TIME, &duration);
+  right = gst_element_query_duration(pipeline, &format, &duration);
 
   if (right && duration > 0)
     {
@@ -167,9 +167,10 @@ set_rate(gpointer data)
 static gint64
 get_position(void)
 {
+  GstFormat format = GST_FORMAT_TIME;
   gint64 position_query, position = -1;
 
-  if (gst_element_query_position(pipeline, GST_FORMAT_TIME, &position_query))
+  if (gst_element_query_position(pipeline, &format, &position_query))
     {
       position = position_query;
     }
