mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-11 09:55:36 +00:00
player: Add deprecated compatibility functions for the audio/video/subtitle stream getters
This commit is contained in:
parent
00f9a21cd2
commit
19ddd9efd2
3 changed files with 40 additions and 0 deletions
|
@ -853,3 +853,30 @@ guint gst_player_media_info_get_number_of_subtitle_streams
|
|||
|
||||
return g_list_length (info->subtitle_stream_list);
|
||||
}
|
||||
|
||||
#ifndef GST_REMOVE_DEPRECATED
|
||||
#ifdef GST_DISABLE_DEPRECATED
|
||||
/* Forward declarations */
|
||||
GList *gst_player_get_video_streams (const GstPlayerMediaInfo * info);
|
||||
GList *gst_player_get_audio_streams (const GstPlayerMediaInfo * info);
|
||||
GList *gst_player_get_subtitle_streams (const GstPlayerMediaInfo * info);
|
||||
#endif
|
||||
|
||||
GList *
|
||||
gst_player_get_video_streams (const GstPlayerMediaInfo * info)
|
||||
{
|
||||
return gst_player_media_info_get_video_streams (info);
|
||||
}
|
||||
|
||||
GList *
|
||||
gst_player_get_audio_streams (const GstPlayerMediaInfo * info)
|
||||
{
|
||||
return gst_player_media_info_get_audio_streams (info);
|
||||
}
|
||||
|
||||
GList *
|
||||
gst_player_get_subtitle_streams (const GstPlayerMediaInfo * info)
|
||||
{
|
||||
return gst_player_media_info_get_subtitle_streams (info);
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -197,6 +197,16 @@ const gchar* gst_player_media_info_get_container_format
|
|||
(const GstPlayerMediaInfo *info);
|
||||
GstSample* gst_player_media_info_get_image_sample
|
||||
(const GstPlayerMediaInfo *info);
|
||||
|
||||
#ifndef GST_DISABLE_DEPRECATED
|
||||
GList* gst_player_get_video_streams
|
||||
(const GstPlayerMediaInfo *info);
|
||||
GList* gst_player_get_audio_streams
|
||||
(const GstPlayerMediaInfo *info);
|
||||
GList* gst_player_get_subtitle_streams
|
||||
(const GstPlayerMediaInfo *info);
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_PLAYER_MEDIA_INFO_H */
|
||||
|
|
|
@ -18,6 +18,7 @@ EXPORTS
|
|||
gst_player_error_quark
|
||||
gst_player_g_main_context_signal_dispatcher_get_type
|
||||
gst_player_g_main_context_signal_dispatcher_new
|
||||
gst_player_get_audio_streams
|
||||
gst_player_get_audio_video_offset
|
||||
gst_player_get_color_balance
|
||||
gst_player_get_config
|
||||
|
@ -33,9 +34,11 @@ EXPORTS
|
|||
gst_player_get_pipeline
|
||||
gst_player_get_position
|
||||
gst_player_get_rate
|
||||
gst_player_get_subtitle_streams
|
||||
gst_player_get_subtitle_uri
|
||||
gst_player_get_type
|
||||
gst_player_get_uri
|
||||
gst_player_get_video_streams
|
||||
gst_player_get_volume
|
||||
gst_player_has_color_balance
|
||||
gst_player_media_info_get_audio_streams
|
||||
|
|
Loading…
Reference in a new issue