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.
18 #ifndef MAFWGSTRENDERERSEEKER_H
19 #define MAFWGSTRENDERERSEEKER_H
21 #include <gst/gstelement.h>
25 typedef struct _MafwGstRendererSeeker MafwGstRendererSeeker;
28 MafwGstRendererSeeker* mafw_gst_renderer_seeker_new();
29 void mafw_gst_renderer_seeker_set_pipeline(MafwGstRendererSeeker *seeker, GstElement *pipeline);
30 gboolean mafw_gst_renderer_seeker_seek_to(MafwGstRendererSeeker *seeker, gint64 seek_pos);
33 * Processes possible seek results. Check if position has changed correctly or enough, if not
34 * executes new seek operation on the pipeline element.
35 * @return The new seek request position or -1 if no new seek request is necessary.
37 gint64 mafw_gst_renderer_seeker_process(MafwGstRendererSeeker *seeker);
38 void mafw_gst_renderer_seeker_cancel(MafwGstRendererSeeker *seeker);
39 void mafw_gst_renderer_seeker_free(MafwGstRendererSeeker *seeker);
43 #endif // MAFWGSTRENDERERSEEKER_H