mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
plugins: remove deprecated code
Since we are only supporting current GStreamer version, since 1.3 gst_buffer_pool_config_add_option() checks if the option to add is already set. There is no need to do it ourselves.
This commit is contained in:
parent
1f71503fc9
commit
5b5ebc0a15
1 changed files with 2 additions and 9 deletions
|
@ -570,8 +570,6 @@ error_pool_config:
|
|||
}
|
||||
}
|
||||
|
||||
/* XXXX: GStreamer 1.2 doesn't check, in gst_buffer_pool_set_config()
|
||||
if the config option is already set */
|
||||
static inline gboolean
|
||||
gst_vaapi_plugin_base_set_pool_config (GstBufferPool * pool,
|
||||
const gchar * option)
|
||||
|
@ -579,13 +577,8 @@ gst_vaapi_plugin_base_set_pool_config (GstBufferPool * pool,
|
|||
GstStructure *config;
|
||||
|
||||
config = gst_buffer_pool_get_config (pool);
|
||||
if (!gst_buffer_pool_config_has_option (config, option)) {
|
||||
gst_buffer_pool_config_add_option (config, option);
|
||||
return gst_buffer_pool_set_config (pool, config);
|
||||
} else {
|
||||
gst_structure_free (config);
|
||||
}
|
||||
return TRUE;
|
||||
gst_buffer_pool_config_add_option (config, option);
|
||||
return gst_buffer_pool_set_config (pool, config);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue