diff options
Diffstat (limited to 'gst/tta')
-rw-r--r-- | gst/tta/gstttaparse.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/gst/tta/gstttaparse.c b/gst/tta/gstttaparse.c index 3c480d9c..3509d359 100644 --- a/gst/tta/gstttaparse.c +++ b/gst/tta/gstttaparse.c @@ -162,11 +162,14 @@ gst_tta_src_event (GstPad * pad, GstEvent * event) case GST_EVENT_SEEK: { if (GST_EVENT_SEEK_FORMAT (event) == GST_FORMAT_TIME) { - GST_DEBUG_OBJECT (ttaparse, "got seek event"); GstEvent *seek_event; - guint64 time = GST_EVENT_SEEK_OFFSET (event); - guint64 seek_frame = time / (FRAME_TIME * 1000000000); - guint64 seekpos = ttaparse->index[seek_frame].pos; + guint64 time; + guint64 seek_frame; + guint64 seekpos; + + time = GST_EVENT_SEEK_OFFSET (event); + seek_frame = time / (FRAME_TIME * 1000000000); + seekpos = ttaparse->index[seek_frame].pos; GST_DEBUG_OBJECT (ttaparse, "seeking to %u", (guint) seekpos); seek_event = |