2 * This file is part of QMAFW
4 * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). All rights
7 * Contact: Visa Smolander <visa.smolander@nokia.com>
9 * This software, including documentation, is protected by copyright controlled
10 * by Nokia Corporation. All rights are reserved. Copying, including
11 * reproducing, storing, adapting or translating, any or all of this material
12 * requires the prior written consent of Nokia Corporation. This material also
13 * contains confidential information which may not be disclosed to others
14 * without the prior written consent of Nokia.
20 #include <gst/gstelement.h>
22 gint64 g_currentPosition;
24 gint64 g_seekRequested;
27 gboolean gst_element_query_position(GstElement *element,
31 *value = g_currentPosition * GST_SECOND;
35 gboolean gst_element_query_duration(GstElement *element,
39 *value = g_duration * GST_SECOND;
43 gboolean gst_element_seek(GstElement *element,
49 GstSeekType stop_type,
52 g_seekRequested = cur / GST_SECOND;