player: Constify the config argument to gst_player_get_video_snapshot()

This structure is only ever read from.
This commit is contained in:
Sebastian Dröge 2017-08-08 11:05:15 +03:00
parent 1ec081f96d
commit 4a45a01b5e
2 changed files with 2 additions and 2 deletions

View file

@ -4682,7 +4682,7 @@ gst_player_config_get_seek_accurate (const GstStructure * config)
*/
GstSample *
gst_player_get_video_snapshot (GstPlayer * self,
GstPlayerSnapshotFormat format, GstStructure * config)
GstPlayerSnapshotFormat format, const GstStructure * config)
{
gint video_tracks = 0;
GstSample *sample = NULL;

View file

@ -288,7 +288,7 @@ typedef enum
GST_EXPORT
GstSample * gst_player_get_video_snapshot (GstPlayer * player,
GstPlayerSnapshotFormat format, GstStructure * config);
GstPlayerSnapshotFormat format, const GstStructure * config);
G_END_DECLS