mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-28 11:55:39 +00:00
audio: GST_EXPORT -> GST_AUDIO_BAD_API
We need different export decorators for the different libs. For now no actual change though, just rename before the release, and add prelude headers to define the new decorator to GST_EXPORT.
This commit is contained in:
parent
04d25d9e4f
commit
6b8f92d84f
4 changed files with 40 additions and 9 deletions
|
@ -23,4 +23,4 @@ libgstbadaudio_@GST_API_VERSION@_la_LIBADD = \
|
|||
libgstbadaudio_@GST_API_VERSION@_la_LDFLAGS = $(GST_LIB_LDFLAGS) $(GST_ALL_LDFLAGS) $(GST_LT_LDFLAGS)
|
||||
|
||||
libgstaudio_@GST_API_VERSION@includedir = $(includedir)/gstreamer-@GST_API_VERSION@/gst/audio
|
||||
libgstaudio_@GST_API_VERSION@include_HEADERS = gstnonstreamaudiodecoder.h
|
||||
libgstaudio_@GST_API_VERSION@include_HEADERS = gstnonstreamaudiodecoder.h audio-bad-prelude.h
|
||||
|
|
31
gst-libs/gst/audio/audio-bad-prelude.h
Normal file
31
gst-libs/gst/audio/audio-bad-prelude.h
Normal file
|
@ -0,0 +1,31 @@
|
|||
/* GStreamer Audio Library
|
||||
* Copyright (C) 2018 GStreamer developers
|
||||
*
|
||||
* audiobad-prelude.h: prelude include header for gst-audiobad library
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Library General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Library General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Library General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
|
||||
* Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#ifndef __GST_AUDIO_BAD_PRELUDE_H__
|
||||
#define __GST_AUDIO_BAD_PRELUDE_H__
|
||||
|
||||
#include <gst/gst.h>
|
||||
|
||||
#ifndef GST_AUDIO_BAD_API
|
||||
#define GST_AUDIO_BAD_API GST_EXPORT
|
||||
#endif
|
||||
|
||||
#endif /* __GST_AUDIO_BAD_PRELUDE_H__ */
|
|
@ -24,7 +24,7 @@
|
|||
#include <gst/gst.h>
|
||||
#include <gst/base/gstadapter.h>
|
||||
#include <gst/audio/audio.h>
|
||||
|
||||
#include <gst/audio/audio-bad-prelude.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
|
@ -377,31 +377,31 @@ struct _GstNonstreamAudioDecoderClass
|
|||
};
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_AUDIO_BAD_API
|
||||
GType gst_nonstream_audio_decoder_get_type (void);
|
||||
|
||||
|
||||
GST_EXPORT
|
||||
GST_AUDIO_BAD_API
|
||||
void gst_nonstream_audio_decoder_handle_loop (GstNonstreamAudioDecoder * dec,
|
||||
GstClockTime new_position);
|
||||
|
||||
GST_EXPORT
|
||||
GST_AUDIO_BAD_API
|
||||
gboolean gst_nonstream_audio_decoder_set_output_format (GstNonstreamAudioDecoder * dec,
|
||||
GstAudioInfo const *audio_info);
|
||||
|
||||
GST_EXPORT
|
||||
GST_AUDIO_BAD_API
|
||||
gboolean gst_nonstream_audio_decoder_set_output_format_simple (GstNonstreamAudioDecoder * dec,
|
||||
guint sample_rate,
|
||||
GstAudioFormat sample_format,
|
||||
guint num_channels);
|
||||
|
||||
GST_EXPORT
|
||||
GST_AUDIO_BAD_API
|
||||
void gst_nonstream_audio_decoder_get_downstream_info (GstNonstreamAudioDecoder * dec,
|
||||
GstAudioFormat * format,
|
||||
gint * sample_rate,
|
||||
gint * num_channels);
|
||||
|
||||
GST_EXPORT
|
||||
GST_AUDIO_BAD_API
|
||||
GstBuffer *gst_nonstream_audio_decoder_allocate_output_buffer (GstNonstreamAudioDecoder * dec,
|
||||
gsize size);
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
badaudio_sources = ['gstnonstreamaudiodecoder.c']
|
||||
badaudio_headers = ['gstnonstreamaudiodecoder.h']
|
||||
badaudio_headers = ['gstnonstreamaudiodecoder.h', 'audio-bad-prelude.h']
|
||||
install_headers(badaudio_headers, subdir : 'gstreamer-1.0/gst/audio')
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue