splitmuxsrc: The return type of format-location signal seems to be GStrv, not GStrv*
About splitmuxsrc, the return type of format-location signal seems to be GStrv, not GStrv*.
I tried with the return code "GStrv*", but does not success. On the other hand, I have success following code (return code is GStrv).
static GStrv formatLocationHandler(GstElement *src, gpointer udata)
{
GStrv locations = (GStrv)g_new0(gchar*, 4);
locations[0] = g_strdup("C:/Rec/2023/07/26/1808_28911.mp4");
locations[1] = g_strdup("C:/Rec/2023/07/26/1808_38919.mp4");
locations[2] = g_strdup("C:/Rec/2023/07/26/1808_47902.mp4");
locations[3] = nullptr;
return locations;
}
The difinition in gstsplitmuxsrc.c is G_TYPE_STRV.
If the return code is GStrv, the following document and the gst-inspect of splitmuxsrc seems incorrect. https://gstreamer.freedesktop.org/documentation/multifile/splitmuxsrc.html