mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Also print event stats on exit.
Original commit message from CVS: Also print event stats on exit.
This commit is contained in:
parent
f84641b8cb
commit
550446c738
1 changed files with 3 additions and 0 deletions
|
@ -192,6 +192,8 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
if (!savefile) {
|
if (!savefile) {
|
||||||
gst_buffer_print_stats();
|
gst_buffer_print_stats();
|
||||||
|
gst_event_print_stats();
|
||||||
|
|
||||||
fprintf(stderr,"RUNNING pipeline\n");
|
fprintf(stderr,"RUNNING pipeline\n");
|
||||||
if (gst_element_set_state (pipeline, GST_STATE_PLAYING) != GST_STATE_SUCCESS) {
|
if (gst_element_set_state (pipeline, GST_STATE_PLAYING) != GST_STATE_SUCCESS) {
|
||||||
fprintf(stderr,"pipeline doesn't want to play\n");
|
fprintf(stderr,"pipeline doesn't want to play\n");
|
||||||
|
@ -210,6 +212,7 @@ main(int argc, char *argv[])
|
||||||
|
|
||||||
gst_element_set_state (pipeline, GST_STATE_NULL);
|
gst_element_set_state (pipeline, GST_STATE_NULL);
|
||||||
gst_buffer_print_stats();
|
gst_buffer_print_stats();
|
||||||
|
gst_event_print_stats();
|
||||||
|
|
||||||
}
|
}
|
||||||
gst_object_unref (GST_OBJECT (pipeline));
|
gst_object_unref (GST_OBJECT (pipeline));
|
||||||
|
|
Loading…
Reference in a new issue