mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-09 00:45:56 +00:00
Added buffer stats at the end, if it's not 0, we have a leak.
Original commit message from CVS: Added buffer stats at the end, if it's not 0, we have a leak.
This commit is contained in:
parent
087dee1f62
commit
b02211c06d
1 changed files with 2 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue