How to print GstMultiFileSink messages

simo zz simon.zz at
Thu Aug 31 18:14:06 UTC 2017

After successffuly initializing a GstElement *multifilesink and enabling the post-messages option:
multifilesink = gst_element_factory_make("multifilesink", NULL);
g_object_set(G_OBJECT(gstData->multifilesink), "post-messages", TRUE, NULL);
I would like to print its messages.The documentation says:
If the “post-messages” property is TRUE, it sends an applicationmessage named "GstMultiFileSink" after writing eachbuffer.
So I am tryong the following piece of code inside my messages bus handler:
    const GstStructure *s = gst_message_get_structure (message);
    if (gst_structure_has_name(s, "GstMultiFileSink"))
        g_print("File written.");
But I cannot see any message even if the files are written.What is the correct way to print multifilelink messages ?Thank you.Regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the gstreamer-devel mailing list