From: Edward Hervey Date: Wed, 9 Jul 2014 05:38:38 +0000 (+0200) Subject: mpegts: Add padding to public structures X-Git-Tag: 1.4.0~42 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=90b27a3c8be5ebeeb89af206a66bab94e9a2d6e8;p=platform%2Fupstream%2Fgst-plugins-bad.git mpegts: Add padding to public structures Allows use to add API in the future without breaking ABI. We broke the API/ABI once between 1.2 and 1.4, let's try to avoid this in the future even if this is an unstable library. https://bugzilla.gnome.org/show_bug.cgi?id=730914 --- diff --git a/gst-libs/gst/mpegts/gstmpegtsdescriptor.h b/gst-libs/gst/mpegts/gstmpegtsdescriptor.h index 698d442..73c7e03 100644 --- a/gst-libs/gst/mpegts/gstmpegtsdescriptor.h +++ b/gst-libs/gst/mpegts/gstmpegtsdescriptor.h @@ -255,6 +255,10 @@ struct _GstMpegtsDescriptor guint8 tag_extension; guint8 length; guint8 *data; + + /*< private >*/ + /* Padding for future extension */ + gpointer _gst_reserved[GST_PADDING]; }; void gst_mpegts_descriptor_free (GstMpegtsDescriptor *desc); diff --git a/gst-libs/gst/mpegts/gstmpegtssection.h b/gst-libs/gst/mpegts/gstmpegtssection.h index 3369396..033c544 100644 --- a/gst-libs/gst/mpegts/gstmpegtssection.h +++ b/gst-libs/gst/mpegts/gstmpegtssection.h @@ -171,6 +171,9 @@ struct _GstMpegtsSection * sections to that people can create private short sections ? */ gboolean short_section; GstMpegtsPacketizeFunc packetizer; + + /* Padding for future extension */ + gpointer _gst_reserved[GST_PADDING]; }; GBytes *gst_mpegts_section_get_data (GstMpegtsSection *section);