How to print GstMultiFileSink messages
simo zz
simon.zz at yahoo.com
Fri Sep 1 06:02:44 UTC 2017
Solved ! :)
The type of message to keep track of is not GST_MESSAGE_APPLICATION but GST_MESSAGE_ELEMENT.Regards.Simon
El Jueves 31 de agosto de 2017 20:14, simo zz <simon.zz at yahoo.com> escribió:
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/20170901/f3a1e8c5/attachment.html>
More information about the gstreamer-devel
mailing list