summaryrefslogtreecommitdiff
path: root/examples/tutorials/basic-tutorial-13.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tutorials/basic-tutorial-13.c')
-rw-r--r--examples/tutorials/basic-tutorial-13.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/tutorials/basic-tutorial-13.c b/examples/tutorials/basic-tutorial-13.c
index 5c9c2ef..990b2b5 100644
--- a/examples/tutorials/basic-tutorial-13.c
+++ b/examples/tutorials/basic-tutorial-13.c
@@ -75,7 +75,7 @@ static gboolean handle_keyboard (GIOChannel *source, GIOCondition cond, CustomDa
}
gst_element_send_event (data->video_sink,
- gst_event_new_step (GST_FORMAT_BUFFERS, 1, data->rate, TRUE, FALSE));
+ gst_event_new_step (GST_FORMAT_BUFFERS, 1, ABS (data->rate), TRUE, FALSE));
g_print ("Stepping one frame\n");
break;
case 'q':