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
@ -4622,7 +4622,7 @@ gst_player_config_get_position_update_interval (const GstStructure * config)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* gst_player_config_set_seek_accurate:
|
* gst_player_config_set_seek_accurate:
|
||||||
* @player: #GstPlayer instance
|
* @config: a #GstPlayer configuration
|
||||||
* @accurate: accurate seek or not
|
* @accurate: accurate seek or not
|
||||||
*
|
*
|
||||||
* Enable or disable accurate seeking. When enabled, elements will try harder
|
* 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
|
* Since: 1.12
|
||||||
*/
|
*/
|
||||||
void
|
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);
|
g_return_if_fail (config != NULL);
|
||||||
|
|
||||||
gst_structure_id_set (config,
|
gst_structure_id_set (config,
|
||||||
|
@ -272,7 +272,7 @@ GST_EXPORT
|
|||||||
guint gst_player_config_get_position_update_interval (const GstStructure * config);
|
guint gst_player_config_get_position_update_interval (const GstStructure * config);
|
||||||
|
|
||||||
GST_EXPORT
|
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
|
GST_EXPORT
|
||||||
gboolean gst_player_config_get_seek_accurate (const GstStructure * config);
|
gboolean gst_player_config_get_seek_accurate (const GstStructure * config);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user