| 1 |
/* gstreamermm - a C++ wrapper for gstreamer |
| 2 |
* |
| 3 |
* Copyright 2008-2016 The gstreamermm Development Team |
| 4 |
* |
| 5 |
* This library is free software; you can redistribute it and/or |
| 6 |
* modify it under the terms of the GNU Lesser General Public |
| 7 |
* License as published by the Free Software Foundation; either |
| 8 |
* version 2.1 of the License, or (at your option) any later version. |
| 9 |
* |
| 10 |
* This library is distributed in the hope that it will be useful, |
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 13 |
* Lesser General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU Lesser General Public |
| 16 |
* License along with this library; if not, write to the Free |
| 17 |
* Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
#include <gst/gst.h> |
| 21 |
|
| 22 |
namespace Gst |
| 23 |
{ |
| 24 |
|
| 25 |
void Segment::set_seek(double rate, Format format, SeekFlags flags, |
| 26 |
SeekType start_type, gint64 start, SeekType stop_type, gint64 stop, |
| 27 |
bool& update) |
| 28 |
{ |
| 29 |
gboolean gst_update = 0; |
| 30 |
|
| 31 |
gst_segment_do_seek(gobj(), rate, static_cast<GstFormat>(format), |
| 32 |
static_cast<GstSeekFlags>(flags), static_cast<GstSeekType>(start_type), |
| 33 |
start, static_cast<GstSeekType>(stop_type), stop, &gst_update); |
| 34 |
|
| 35 |
update = gst_update; |
| 36 |
} |
| 37 |
|
| 38 |
} // namespace Gst |