How to print GstMultiFileSink messages

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


Hello,
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:
case GST_MESSAGE_APPLICATION:
{
    const GstStructure *s = gst_message_get_structure (message);
    if (gst_structure_has_name(s, "GstMultiFileSink"))
    {
        g_print("File written.");
    }
    break;
}
But I cannot see any message even if the files are written.What is the correct way to print multifilelink messages ?Thank you.Regards,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170831/0de9579d/attachment.html>


More information about the gstreamer-devel mailing list