From 20e7d4349cc664ff18d810f2abd310c5365eda21 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Tue, 8 May 2012 19:34:48 -0400 Subject: [PATCH] timeline: Avoid segfault when debug logging --- ges/ges-timeline.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ges/ges-timeline.c b/ges/ges-timeline.c index e211c43ba0..dcb09f283d 100644 --- a/ges/ges-timeline.c +++ b/ges/ges-timeline.c @@ -776,9 +776,12 @@ ges_timeline_snap_position (GESTimeline * timeline, GESTrackObject * trackobj, /* We emit the snapping signal only if we snapped with a different value * than the current one */ if (emit) { + GstClockTime snap_time = ret ? *ret : GST_CLOCK_TIME_NONE; + ges_timeline_emit_snappig (timeline, trackobj, ret); + GST_DEBUG_OBJECT (timeline, "Snaping at %" GST_TIME_FORMAT, - GST_TIME_ARGS (*ret)); + GST_TIME_ARGS (snap_time)); } return ret;