mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 11:32:38 +00:00
player: fix deprecated api declaration
This commit is contained in:
parent
b6411ae74c
commit
96ac822b67
2 changed files with 11 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue