GST_MESSAGE_ELEMENT

Shubham Shrivastava shubham333vm at gmail.com
Tue Jul 3 06:41:42 UTC 2018


case GST_MESSAGE_ELEMENT:
    s = gst_message_get_structure (msg);
 if (gst_structure_has_name(s, "GstMultiFileSink"))
    {
         g_print("########################GST_MESSAGE_ELEMENT
START#################\n");
         g_print("File written.");
         //gboolean fields=gst_structure_has_field(GstMultiFileSink,const
gchar *filename);
         g_print(s->filename);
         g_print(s->index);
         g_print(s->post_messages);
         g_print(s->max_files);
         g_print(s->max_file_size);
         g_print(s->max_file_duration);
         g_print(s->aggregate_gops);
         g_print(s->gop_adapter);
         g_print(s->next_segmen);
         g_print("########################GST_MESSAGE_ELEMENT
END#################\n");
    }
    break;

  const GstStructure *s;


Its showinig


‘GstStructure {aka const struct _GstStructure}’ has no member named
‘filename’
          g_print(s->filename);
                   ^
GVideo.c:623:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘index’
          g_print(s->index);
                   ^
GVideo.c:624:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘post_messages’
          g_print(s->post_messages);
                   ^
GVideo.c:625:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘max_files’
          g_print(s->max_files);
                   ^
GVideo.c:626:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘max_file_size’
          g_print(s->max_file_size);
                   ^
GVideo.c:627:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘max_file_duration’
          g_print(s->max_file_duration);
                   ^
GVideo.c:628:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘aggregate_gops’
          g_print(s->aggregate_gops);
                   ^
GVideo.c:629:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘gop_adapter’
          g_print(s->gop_adapter);
                   ^
GVideo.c:630:19: error: ‘GstStructure {aka const struct _GstStructure}’ has
no member named ‘next_segmen’
          g_print(s->next_segmen);
                   ^
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20180703/b62e5e7f/attachment.html>


More information about the gstreamer-devel mailing list