codecparsers: add C++ guards for MPEG-4 and VP8 parsers.

Fix MPEG-4 and VP8 APIs to export their external symbols as pure C
symbols, i.e. un-mangled for C++.

https://bugzilla.gnome.org/show_bug.cgi?id=731522

Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
This commit is contained in:
Gwenole Beauchesne 2014-05-26 18:29:21 +02:00
parent e1e2a88358
commit 5196f24138
3 changed files with 9 additions and 1 deletions

View file

@ -32,6 +32,7 @@
#endif
#include <string.h>
#include <gst/base/gstbitreader.h>
#include <gst/base/gstbytereader.h>

View file

@ -22,7 +22,8 @@
#define __GST_MPEG4UTIL_H__
#include <gst/gst.h>
#include <gst/base/gstbitreader.h>
G_BEGIN_DECLS
typedef struct _GstMpeg4VisualObjectSequence GstMpeg4VisualObjectSequence;
typedef struct _GstMpeg4VisualObject GstMpeg4VisualObject;
@ -577,4 +578,6 @@ gst_mpeg4_parse_video_packet_header (GstMpeg4VideoPacketHdr * videopackethd
GstMpeg4SpriteTrajectory * sprite_trajectory,
const guint8 * data, gsize size);
G_END_DECLS
#endif /* __GST_MPEG4UTIL_H__ */

View file

@ -26,6 +26,8 @@
#include <gst/gst.h>
G_BEGIN_DECLS
typedef struct _GstVp8FrameHdr GstVp8FrameHdr;
typedef struct _GstVp8QuantIndices GstVp8QuantIndices;
typedef struct _GstVp8Segmentation GstVp8Segmentation;
@ -331,4 +333,6 @@ GstVp8ParserResult
gst_vp8_parser_parse_frame_header (GstVp8Parser * parser,
GstVp8FrameHdr * frame_hdr, const guint8 * data, gsize size);
G_END_DECLS
#endif /* GST_VP8_PARSER_H */