summaryrefslogtreecommitdiff
path: root/gst-libs
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2018-09-24 14:40:31 +0100
committerTim-Philipp Müller <tim@centricular.com>2018-09-24 14:46:40 +0100
commit96ac822b67b56aacd3bc530ca6cba1d38f90895c (patch)
tree6a9d3673c85f2c6545cae26c0befe5b51c4dfc59 /gst-libs
parentb6411ae74cc7319ef368f5b4a6a872231b49620a (diff)
player: fix deprecated api declaration
Diffstat (limited to 'gst-libs')
-rw-r--r--gst-libs/gst/player/gstplayer-media-info.h8
-rw-r--r--gst-libs/gst/player/player-prelude.h8
2 files changed, 11 insertions, 5 deletions
diff --git a/gst-libs/gst/player/gstplayer-media-info.h b/gst-libs/gst/player/gstplayer-media-info.h
index 8d2eb4f1e..f49fe5c78 100644
--- a/gst-libs/gst/player/gstplayer-media-info.h
+++ b/gst-libs/gst/player/gstplayer-media-info.h
@@ -241,16 +241,14 @@ const gchar* gst_player_media_info_get_container_format (const GstPlayerMediaIn
GST_PLAYER_API
GstSample* gst_player_media_info_get_image_sample (const GstPlayerMediaInfo *info);
-#ifndef GST_REMOVE_DEPRECATED
-GST_DEPRECATED_FOR(gst_player_media_info_get_video_streams)
+GST_PLAYER_DEPRECATED_FOR(gst_player_media_info_get_video_streams)
GList* gst_player_get_video_streams (const GstPlayerMediaInfo *info);
-GST_DEPRECATED_FOR(gst_player_media_info_get_audio_streams)
+GST_PLAYER_DEPRECATED_FOR(gst_player_media_info_get_audio_streams)
GList* gst_player_get_audio_streams (const GstPlayerMediaInfo *info);
-GST_DEPRECATED_FOR(gst_player_media_info_get_subtitle_streams)
+GST_PLAYER_DEPRECATED_FOR(gst_player_media_info_get_subtitle_streams)
GList* gst_player_get_subtitle_streams (const GstPlayerMediaInfo *info);
-#endif
G_END_DECLS
diff --git a/gst-libs/gst/player/player-prelude.h b/gst-libs/gst/player/player-prelude.h
index 2a8b87e66..4b7046996 100644
--- a/gst-libs/gst/player/player-prelude.h
+++ b/gst-libs/gst/player/player-prelude.h
@@ -32,4 +32,12 @@
# endif
#endif
+#ifndef GST_DISABLE_DEPRECATED
+#define GST_PLAYER_DEPRECATED GST_PLAYER_API
+#define GST_PLAYER_DEPRECATED_FOR(f) GST_PLAYER_API
+#else
+#define GST_PLAYER_DEPRECATED G_DEPRECATED GST_PLAYER_API
+#define GST_PLAYER_DEPRECATED_FOR(f) G_DEPRECATED_FOR(f) GST_PLAYER_API
+#endif
+
#endif /* __GST_PLAYER_PRELUDE_H__ */