diff options
author | Edward Hervey <edward@collabora.com> | 2014-07-09 07:38:38 +0200 |
---|---|---|
committer | Edward Hervey <edward@collabora.com> | 2014-07-09 07:39:37 +0200 |
commit | 90b27a3c8be5ebeeb89af206a66bab94e9a2d6e8 (patch) | |
tree | 41fc3e3224bfb963c020439c59b2fcdb0d4ab0d4 | |
parent | 1d233b751636b2c7080e3f446664e85fb58c27b3 (diff) | |
download | gstreamer-plugins-bad-90b27a3c8be5ebeeb89af206a66bab94e9a2d6e8.tar.gz |
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
-rw-r--r-- | gst-libs/gst/mpegts/gstmpegtsdescriptor.h | 4 | ||||
-rw-r--r-- | gst-libs/gst/mpegts/gstmpegtssection.h | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gst-libs/gst/mpegts/gstmpegtsdescriptor.h b/gst-libs/gst/mpegts/gstmpegtsdescriptor.h index 698d442f1..73c7e0340 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 33693967d..033c544d6 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); |