summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Boba <peter.boba@pexip.com>2021-01-24 21:45:49 +0100
committerPeter Boba <peter.boba@pexip.com>2021-01-24 21:45:49 +0100
commit2248c5a389d21b6e2ae7c36e7d926b082c0733a9 (patch)
treefc7b35e5b914aef1212e56b75c2bc78bde13accc
parentc36c87e47f83f02272a98262279a2b612e25be7d (diff)
Fix time-management tutorial sample code
Adds newline to a print statement so it doesn't overwrite the position output. (I'd like to see the last timestamp for the position output).
-rw-r--r--examples/tutorials/basic-tutorial-4.c2
-rw-r--r--markdown/tutorials/basic/time-management.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/tutorials/basic-tutorial-4.c b/examples/tutorials/basic-tutorial-4.c
index 750425c..b3a5229 100644
--- a/examples/tutorials/basic-tutorial-4.c
+++ b/examples/tutorials/basic-tutorial-4.c
@@ -121,7 +121,7 @@ handle_message (CustomData * data, GstMessage * msg)
data->terminate = TRUE;
break;
case GST_MESSAGE_EOS:
- g_print ("End-Of-Stream reached.\n");
+ g_print ("\nEnd-Of-Stream reached.\n");
data->terminate = TRUE;
break;
case GST_MESSAGE_DURATION:
diff --git a/markdown/tutorials/basic/time-management.md b/markdown/tutorials/basic/time-management.md
index 9bdcd49..e1d9dc7 100644
--- a/markdown/tutorials/basic/time-management.md
+++ b/markdown/tutorials/basic/time-management.md
@@ -151,7 +151,7 @@ static void handle_message (CustomData *data, GstMessage *msg) {
data->terminate = TRUE;
break;
case GST_MESSAGE_EOS:
- g_print ("End-Of-Stream reached.\n");
+ g_print ("\nEnd-Of-Stream reached.\n");
data->terminate = TRUE;
break;
case GST_MESSAGE_DURATION: