unknown type name 'GstMpegTsDescriptor'

Bernhard Graaf bernhard.graaf at gmx.de
Sun Jan 11 11:53:28 PST 2015


I try to build a code with using mpegts.h but I get the error: unknown type
name 'GstMpegTsDescriptor'. mpegts.h is loaded but the code is not compiled.

 

The Messages from gcc:

 

-------------

gcc -c -Wall -W -Wformat-nonliteral -Wcast-align -Wpointer-arith
-Wbad-function-cast -Winline -Wundef -Wnested-externs -Wcast-qual -Wshadow
-Wwrite-strings -Wno-unused-parameter -Wfloat-equal -pedantic -ansi -std=c99
bgls_rec2_3gst.c `pkg-config --libs gstreamer-1.0 --cflags`  -lmysqlclient
-lgstmpegts-1.0

In file included from /usr/local/include/gstreamer-1.0/gst/gstpad.h:69:0,

                 from /usr/local/include/gstreamer-1.0/gst/gstelement.h:57,

                 from /usr/local/include/gstreamer-1.0/gst/gstbin.h:27,

                 from /usr/local/include/gstreamer-1.0/gst/gst.h:35,

                 from bgls_rec2_3gst.c:11:

/usr/local/include/gstreamer-1.0/gst/gstcaps.h: In function 'gst_caps_copy':

/usr/local/include/gstreamer-1.0/gst/gstminiobject.h:33:45: warning: cast
discards '__attribute__((const))' qualifier from pointer target type
[-Wcast-qual]

 #define GST_MINI_OBJECT_CAST(obj)          ((GstMiniObject*)(obj))

                                             ^

/usr/local/include/gstreamer-1.0/gst/gstcaps.h:35:47: note: in definition of
macro 'GST_CAPS_CAST'

 #define GST_CAPS_CAST(obj)        ((GstCaps*)(obj))

                                               ^

/usr/local/include/gstreamer-1.0/gst/gstcaps.h:256:10: note: in expansion of
macro 'GST_CAPS'

   return GST_CAPS (gst_mini_object_copy (GST_MINI_OBJECT_CAST (caps)));

          ^

/usr/local/include/gstreamer-1.0/gst/gstcaps.h:256:42: note: in expansion of
macro 'GST_MINI_OBJECT_CAST'

   return GST_CAPS (gst_mini_object_copy (GST_MINI_OBJECT_CAST (caps)));

                                          ^

In file included from /usr/local/include/gstreamer-1.0/gst/gstevent.h:179:0,

                 from
/usr/local/include/gstreamer-1.0/gst/gstpadtemplate.h:36,

                 from /usr/local/include/gstreamer-1.0/gst/gstpad.h:70,

                 from /usr/local/include/gstreamer-1.0/gst/gstelement.h:57,

                 from /usr/local/include/gstreamer-1.0/gst/gstbin.h:27,

                 from /usr/local/include/gstreamer-1.0/gst/gst.h:35,

                 from bgls_rec2_3gst.c:11:

/usr/local/include/gstreamer-1.0/gst/gsttaglist.h: In function
'gst_tag_list_copy':

/usr/local/include/gstreamer-1.0/gst/gstminiobject.h:33:45: warning: cast
discards '__attribute__((const))' qualifier from pointer target type
[-Wcast-qual]

 #define GST_MINI_OBJECT_CAST(obj)          ((GstMiniObject*)(obj))

                                             ^

/usr/local/include/gstreamer-1.0/gst/gsttaglist.h:159:48: note: in
definition of macro 'GST_TAG_LIST'

 #define GST_TAG_LIST(x)       ((GstTagList *) (x))

                                                ^

/usr/local/include/gstreamer-1.0/gst/gsttaglist.h:441:46: note: in expansion
of macro 'GST_MINI_OBJECT_CAST'

   return GST_TAG_LIST (gst_mini_object_copy (GST_MINI_OBJECT_CAST
(taglist)));

                                              ^

bgls_rec2_3gst.c: In function 'dump_descriptors':

bgls_rec2_3gst.c:80:5: error: unknown type name 'GstMpegTsDescriptor'

     GstMpegTsDescriptor *desc = g_ptr_array_index (descriptors, i);

     ^

bgls_rec2_3gst.c:81:17: error: request for member 'tag' in something not a
structure or union

     switch (desc->tag)

                 ^

bgls_rec2_3gst.c:86:9: warning: passing argument 1 of
'gst_mpegts_descriptor_parse_dvb_short_event' from incompatible pointer type
[enabled by default]

         if (gst_mpegts_descriptor_parse_dvb_short_event (desc,
&language_code, &event_name, &text))

         ^

In file included from
/usr/local/include/gstreamer-1.0/gst/mpegts/mpegts.h:33:0,

                 from bgls_rec2_3gst.c:17:

/usr/local/include/gstreamer-1.0/gst/mpegts/gst-dvb-descriptor.h:468:10:
note: expected 'const struct GstMpegtsDescriptor *' but argument is of type
'int *'

 gboolean gst_mpegts_descriptor_parse_dvb_short_event (const
GstMpegtsDescriptor *descriptor,

          ^

bgls_rec2_3gst.c: At top level:

bgls_rec2_3gst.c:106:23: error: unknown type name 'GstMpegTsSection'

 static void dump_eit (GstMpegTsSection * section)

                       ^

bgls_rec2_3gst.c: In function 'dvb_bus_call':

bgls_rec2_3gst.c:160:7: error: unknown type name 'GstMpegTsSection'

       GstMpegTsSection *section;

       ^

bgls_rec2_3gst.c:161:20: warning: assignment from incompatible pointer type
[enabled by default]

       if ((section = gst_message_parse_mpegts_section (msg)))

                    ^

bgls_rec2_3gst.c:163:9: warning: implicit declaration of function 'dump_eit'
[-Wimplicit-function-declaration]

         if (GST_MPEGTS_SECTION_TYPE (section) == GST_MPEGTS_SECTION_EIT)
dump_eit (section);

         ^

bgls_rec2_3gst.c:163:9: warning: nested extern declaration of 'dump_eit'
[-Wnested-externs]

bgls_rec2_3gst.c: At top level:

bgls_rec2_3gst.c:47:1: warning: 'dump_descriptors' defined but not used
[-Wunused-function]

 dump_descriptors (GPtrArray * descriptors, guint spacing, GstDateTime
*start_time, guint32 duration, guint16 sid)

 ^

make: *** [bgls_rec2_3gst.o] Fehler 1

 

 

Is there something wrong in the call of gcc?

 

Thanks

Bernhard

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150111/f85cc22f/attachment-0001.html>


More information about the gstreamer-devel mailing list