mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
player: Fix-up set_seek_accurate() configuration to take a player config instead of a player instance
This commit is contained in:
parent
20c4dc25fb
commit
cc58bd6ae0
2 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue