Hi,
Many of the types in the MPEG-TS library have an associated _get_type function, for example gst_mpegts_section_get_type. Doing a grep on the GStreamer source, I see some usages of these functions and I see declarations of the functions, but I do not see any definitions of the functions. Where are the definitions of these functions? -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (849 bytes) Download Attachment |
On Mon, 2019-05-20 at 15:41 +0100, Russel Winder wrote:
> Hi, > > Many of the types in the MPEG-TS library have an associated _get_type > function, for example gst_mpegts_section_get_type. Doing a grep on the > GStreamer source, I see some usages of these functions and I see declarations > of the functions, but I do not see any definitions of the functions. Where are > the definitions of these functions? From the G_DEFINE_BOXED_TYPE macro, G_DEFINE_TYPE, etc. -- Sebastian Dröge, Centricular Ltd · https://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (981 bytes) Download Attachment |
On Mon, 2019-05-20 at 18:13 +0300, Sebastian Dröge wrote:
> On Mon, 2019-05-20 at 15:41 +0100, Russel Winder wrote: > > Hi, > > > > Many of the types in the MPEG-TS library have an associated _get_type > > function, for example gst_mpegts_section_get_type. Doing a grep on the > > GStreamer source, I see some usages of these functions and I see > > declarations > > of the functions, but I do not see any definitions of the functions. Where > > are > > the definitions of these functions? > > From the G_DEFINE_BOXED_TYPE macro, G_DEFINE_TYPE, etc. I think enums must be treated differently to structs. In particular the audio library has an enum AudioChannelPosition and there is a function gst_audio_channel_position_get_type. However I cannot find any G_DEFINE… applied to AudioChannelPosition in the GStreamer source. Hopefully this is just a problem with my use of grep. -- Russel. =========================================== Dr Russel Winder t: +44 20 7585 2200 41 Buckmaster Road m: +44 7770 465 077 London SW11 1EN, UK w: www.russel.org.uk _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (849 bytes) Download Attachment |
On Mon, 2019-05-20 at 17:05 +0100, Russel Winder wrote:
> > I think enums must be treated differently to structs. In particular the audio > library has an enum AudioChannelPosition and there is a function > gst_audio_channel_position_get_type. However I cannot find any G_DEFINE… > applied to AudioChannelPosition in the GStreamer source. Hopefully this is > just a problem with my use of grep. g_enum_register_static(), which is usually called from autogenerated (via glib-mkenums) files. -- Sebastian Dröge, Centricular Ltd · https://www.centricular.com _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel signature.asc (981 bytes) Download Attachment |
Free forum by Nabble | Edit this page |