mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-26 02:00:33 +00:00
gst-play: missing cleanup for g_autoptr
Without this change cleanup function for g_autoptr is not defined for GstPlayMediaInfo, GstPlaySignalAdapter, GstPlayVideoRenderer, GstPlayVideoOverlayVideoRenderer and GstPlayVisualization. Cleanup function was defined in gstplay.h, but missing in other header files. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2904>
This commit is contained in:
parent
268db7160f
commit
043727c4d5
5 changed files with 20 additions and 0 deletions
|
@ -215,6 +215,10 @@ const gchar * gst_play_subtitle_info_get_language (const GstPlaySubtitleInfo* in
|
|||
typedef struct _GstPlayMediaInfo GstPlayMediaInfo;
|
||||
typedef struct _GstPlayMediaInfoClass GstPlayMediaInfoClass;
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlayMediaInfo, g_object_unref)
|
||||
#endif
|
||||
|
||||
GST_PLAY_API
|
||||
GType gst_play_media_info_get_type (void);
|
||||
|
||||
|
|
|
@ -39,6 +39,10 @@ G_BEGIN_DECLS
|
|||
*/
|
||||
#define GST_PLAY_SIGNAL_ADAPTER_CAST(obj) ((GstPlaySignalAdapter*)(obj))
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlaySignalAdapter, g_object_unref)
|
||||
#endif
|
||||
|
||||
GST_PLAY_API
|
||||
GType gst_play_signal_adapter_get_type (void);
|
||||
|
||||
|
|
|
@ -48,6 +48,10 @@ typedef struct _GstPlayVideoOverlayVideoRendererClass
|
|||
*/
|
||||
#define GST_PLAY_VIDEO_OVERLAY_VIDEO_RENDERER_CAST(obj) ((GstPlayVideoOverlayVideoRenderer*)(obj))
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlayVideoOverlayVideoRenderer, g_object_unref)
|
||||
#endif
|
||||
|
||||
GST_PLAY_API
|
||||
GType gst_play_video_overlay_video_renderer_get_type (void);
|
||||
|
||||
|
|
|
@ -49,6 +49,10 @@ struct _GstPlayVideoRendererInterface {
|
|||
GstElement * (*create_video_sink) (GstPlayVideoRenderer * self, GstPlay * play);
|
||||
};
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlayVideoRenderer, g_object_unref)
|
||||
#endif
|
||||
|
||||
GST_PLAY_API
|
||||
GType gst_play_video_renderer_get_type (void);
|
||||
|
||||
|
|
|
@ -56,6 +56,10 @@ GstPlayVisualization ** gst_play_visualizations_get (void);
|
|||
GST_PLAY_API
|
||||
void gst_play_visualizations_free (GstPlayVisualization **viss);
|
||||
|
||||
#ifdef G_DEFINE_AUTOPTR_CLEANUP_FUNC
|
||||
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GstPlayVisualization, gst_play_visualization_free)
|
||||
#endif
|
||||
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_PLAY_VISUALIZATION_H__ */
|
||||
|
|
Loading…
Reference in a new issue