libs: Add deprecation guard

Those functions have been marked as deprecated
This commit is contained in:
Edward Hervey 2018-04-02 08:42:01 +02:00 committed by Edward Hervey
parent 1b23c388ad
commit d69fa0c78e
4 changed files with 12 additions and 1 deletions

View file

@ -689,6 +689,7 @@ gst_discoverer_stream_info_get_stream_id (GstDiscovererStreamInfo * info)
return info->stream_id;
}
#ifndef GST_DISABLE_DEPRECATED
/**
* gst_discoverer_stream_info_get_misc:
* @info: a #GstDiscovererStreamInfo
@ -707,6 +708,7 @@ gst_discoverer_stream_info_get_misc (GstDiscovererStreamInfo * info)
return info->misc;
}
#endif
/* GstDiscovererContainerInfo */
@ -1039,6 +1041,7 @@ DISCOVERER_INFO_ACCESSOR_CODE (seekable, gboolean, FALSE);
DISCOVERER_INFO_ACCESSOR_CODE (live, gboolean, FALSE);
#ifndef GST_DISABLE_DEPRECATED
/**
* gst_discoverer_info_get_misc:
* @info: a #GstDiscovererInfo
@ -1052,6 +1055,7 @@ DISCOVERER_INFO_ACCESSOR_CODE (live, gboolean, FALSE);
*/
DISCOVERER_INFO_ACCESSOR_CODE (misc, const GstStructure *, NULL);
#endif
/**
* gst_discoverer_info_get_tags:

View file

@ -78,9 +78,10 @@ const GstToc* gst_discoverer_stream_info_get_toc(GstDiscovererStreamI
GST_PBUTILS_API
const gchar* gst_discoverer_stream_info_get_stream_id(GstDiscovererStreamInfo* info);
#ifndef GST_DISABLE_DEPRECATED
GST_PBUTILS_API
const GstStructure* gst_discoverer_stream_info_get_misc(GstDiscovererStreamInfo* info);
#endif
GST_PBUTILS_API
const gchar * gst_discoverer_stream_info_get_stream_type_nick(GstDiscovererStreamInfo* info);
@ -303,8 +304,10 @@ gboolean gst_discoverer_info_get_seekable(const GstDiscovererIn
GST_PBUTILS_API
gboolean gst_discoverer_info_get_live(const GstDiscovererInfo* info);
#ifndef GST_DISABLE_DEPRECATED
GST_PBUTILS_API
const GstStructure* gst_discoverer_info_get_misc(const GstDiscovererInfo* info);
#endif
GST_PBUTILS_API
const GstTagList* gst_discoverer_info_get_tags(const GstDiscovererInfo* info);

View file

@ -198,6 +198,7 @@ gst_rtsp_transport_init (GstRTSPTransport * transport)
return GST_RTSP_OK;
}
#ifndef GST_DISABLE_DEPRECATED
/**
* gst_rtsp_transport_get_mime:
* @trans: a #GstRTSPTransMode
@ -227,6 +228,7 @@ gst_rtsp_transport_get_mime (GstRTSPTransMode trans, const gchar ** mime)
return GST_RTSP_OK;
}
#endif
/**
* gst_rtsp_transport_get_media_type:

View file

@ -183,8 +183,10 @@ GstRTSPResult gst_rtsp_transport_parse (const gchar *str, GstRTSPTra
GST_RTSP_API
gchar* gst_rtsp_transport_as_text (GstRTSPTransport *transport);
#ifndef GST_DISABLE_DEPRECATED
GST_RTSP_API
GstRTSPResult gst_rtsp_transport_get_mime (GstRTSPTransMode trans, const gchar **mime);
#endif
GST_RTSP_API
GstRTSPResult gst_rtsp_transport_get_manager (GstRTSPTransMode trans, const gchar **manager, guint option);