summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Dröge <sebastian@centricular.com>2017-12-16 10:44:26 +0200
committerSebastian Dröge <sebastian@centricular.com>2017-12-16 10:44:26 +0200
commitcc58bd6ae071dec4ea7b4be626034accd0372755 (patch)
treed966dfee29a9aa4194e70c7c7de1f204ceaff1ad
parent20c4dc25fbbe68c9b7526059c50b74e818c12b10 (diff)
player: Fix-up set_seek_accurate() configuration to take a player config instead of a player instance
-rw-r--r--gst-libs/gst/player/gstplayer.c5
-rw-r--r--gst-libs/gst/player/gstplayer.h2
2 files changed, 3 insertions, 4 deletions
diff --git a/gst-libs/gst/player/gstplayer.c b/gst-libs/gst/player/gstplayer.c
index 183c84965..c6f0b018f 100644
--- a/gst-libs/gst/player/gstplayer.c
+++ b/gst-libs/gst/player/gstplayer.c
@@ -4622,7 +4622,7 @@ gst_player_config_get_position_update_interval (const GstStructure * config)
/**
* gst_player_config_set_seek_accurate:
- * @player: #GstPlayer instance
+ * @config: a #GstPlayer configuration
* @accurate: accurate seek or not
*
* Enable or disable accurate seeking. When enabled, elements will try harder
@@ -4638,9 +4638,8 @@ gst_player_config_get_position_update_interval (const GstStructure * config)
* Since: 1.12
*/
void
-gst_player_config_set_seek_accurate (GstPlayer * self, gboolean accurate)
+gst_player_config_set_seek_accurate (GstStructure * config, gboolean accurate)
{
- GstStructure *config = self->config;
g_return_if_fail (config != NULL);
gst_structure_id_set (config,
diff --git a/gst-libs/gst/player/gstplayer.h b/gst-libs/gst/player/gstplayer.h
index f8b722247..e13499a11 100644
--- a/gst-libs/gst/player/gstplayer.h
+++ b/gst-libs/gst/player/gstplayer.h
@@ -272,7 +272,7 @@ GST_EXPORT
guint gst_player_config_get_position_update_interval (const GstStructure * config);
GST_EXPORT
-void gst_player_config_set_seek_accurate (GstPlayer * player, gboolean accurate);
+void gst_player_config_set_seek_accurate (GstStructure * config, gboolean accurate);
GST_EXPORT
gboolean gst_player_config_get_seek_accurate (const GstStructure * config);