Skip to content

GstPlay: missing cleanup for g_autoptr

  • Without this change cleanup function for g_autoptr is not defined for GstPlayMediaInfo, GstPlaySignalAdapter, GstPlayVideoOverlayVideoRenderer, GstPlayVideoRenderer, GstPlayVisualization. Cleanup function was defined in gstplay.h, but missing in other header files.

Without this change the following code is not building:

    g_autoptr(GstPlay) player = gst_play_new(NULL);
    g_autoptr(GstPlayMediaInfo) info = gst_play_get_media_info(player);

Compiler report:

error: use of undeclared identifier 'glib_autoptr_cleanup_GstPlayMediaInfo';

Merge request reports