Added buffer stats at the end, if it's not 0, we have a leak.
authorWim Taymans <wim.taymans@gmail.com>
Sat, 22 Dec 2001 21:26:56 +0000 (21:26 +0000)
committerWim Taymans <wim.taymans@gmail.com>
Sat, 22 Dec 2001 21:26:56 +0000 (21:26 +0000)
Original commit message from CVS:
Added buffer stats at the end, if it's not 0, we have a leak.

tools/gstreamer-launch.c

index e817d3b..7afae06 100644 (file)
@@ -206,6 +206,7 @@ main(int argc, char *argv[])
   if (run_pipeline) {
     arg_search(GST_BIN(pipeline),"xid",xid_handler,NULL);
 
+    gst_buffer_print_stats();
     fprintf(stderr,"RUNNING pipeline\n");
     if (gst_element_set_state (pipeline, GST_STATE_PLAYING) != GST_STATE_SUCCESS) {
       fprintf(stderr,"pipeline doesn't want to play\n");
@@ -216,6 +217,7 @@ main(int argc, char *argv[])
     gst_main ();
 
     gst_element_set_state (pipeline, GST_STATE_NULL);
+    gst_buffer_print_stats();
 
   }
   gst_object_unref (GST_OBJECT (pipeline));