mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
Correct all relevant warnings found by the sparse semantic code analyzer. This include marking several symbols static...
Original commit message from CVS: * ext/alsa/gstalsamixertrack.c: (gst_alsa_mixer_track_get_type): * ext/alsa/gstalsasink.c: (set_hwparams): * ext/alsa/gstalsasrc.c: (set_hwparams): * ext/gio/gstgio.c: (gst_gio_uri_handler_get_uri): * ext/ogg/gstoggmux.h: * ext/ogg/gstogmparse.c: * gst-libs/gst/audio/audio.c: * gst-libs/gst/fft/kiss_fft_f64.c: (kiss_fft_f64_alloc): * gst-libs/gst/pbutils/missing-plugins.c: (gst_missing_uri_sink_message_new), (gst_missing_element_message_new), (gst_missing_decoder_message_new), (gst_missing_encoder_message_new): * gst-libs/gst/rtp/gstbasertppayload.c: * gst-libs/gst/rtp/gstrtcpbuffer.c: (gst_rtcp_packet_bye_get_reason): * gst/audioconvert/gstaudioconvert.c: * gst/audioresample/gstaudioresample.c: * gst/ffmpegcolorspace/imgconvert.c: * gst/playback/test.c: (gen_video_element), (gen_audio_element): * gst/typefind/gsttypefindfunctions.c: * gst/videoscale/vs_4tap.c: * gst/videoscale/vs_4tap.h: * sys/v4l/gstv4lelement.c: * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_get_any_caps): * sys/v4l/v4l_calls.c: * sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_capture_init), (gst_v4lsrc_try_capture): * sys/ximage/ximagesink.c: (gst_ximagesink_check_xshm_calls), (gst_ximagesink_ximage_new): * sys/xvimage/xvimagesink.c: (gst_xvimagesink_check_xshm_calls), (gst_xvimagesink_xvimage_new): * tests/check/elements/audioconvert.c: * tests/check/elements/audioresample.c: (fail_unless_perfect_stream): * tests/check/elements/audiotestsrc.c: (setup_audiotestsrc): * tests/check/elements/decodebin.c: * tests/check/elements/gdpdepay.c: (setup_gdpdepay), (setup_gdpdepay_streamheader): * tests/check/elements/gdppay.c: (setup_gdppay), (GST_START_TEST), (setup_gdppay_streamheader): * tests/check/elements/gnomevfssink.c: (setup_gnomevfssink): * tests/check/elements/multifdsink.c: (setup_multifdsink): * tests/check/elements/textoverlay.c: * tests/check/elements/videorate.c: (setup_videorate): * tests/check/elements/videotestsrc.c: (setup_videotestsrc): * tests/check/elements/volume.c: (setup_volume): * tests/check/elements/vorbisdec.c: (setup_vorbisdec): * tests/check/elements/vorbistag.c: * tests/check/generic/clock-selection.c: * tests/check/generic/states.c: (setup), (teardown): * tests/check/libs/cddabasesrc.c: * tests/check/libs/video.c: * tests/check/pipelines/gio.c: * tests/check/pipelines/oggmux.c: * tests/check/pipelines/simple-launch-lines.c: (simple_launch_lines_suite): * tests/check/pipelines/streamheader.c: * tests/check/pipelines/theoraenc.c: * tests/check/pipelines/vorbisdec.c: * tests/check/pipelines/vorbisenc.c: * tests/examples/seek/scrubby.c: * tests/examples/seek/seek.c: (query_positions_elems), (query_positions_pads): * tests/icles/stress-xoverlay.c: (myclock): Correct all relevant warnings found by the sparse semantic code analyzer. This include marking several symbols static, using NULL instead of 0 for pointers and using "foo (void)" instead of "foo ()" for declarations. * win32/common/libgstrtp.def: Add gst_rtp_buffer_set_extension_data to the symbol definition file.
This commit is contained in:
parent
f61c20f1d2
commit
ec7afb6f84
53 changed files with 261 additions and 188 deletions
75
ChangeLog
75
ChangeLog
|
@ -1,3 +1,78 @@
|
||||||
|
2008-03-03 Sebastian Dröge <slomo@circular-chaos.org>
|
||||||
|
|
||||||
|
* ext/alsa/gstalsamixertrack.c: (gst_alsa_mixer_track_get_type):
|
||||||
|
* ext/alsa/gstalsasink.c: (set_hwparams):
|
||||||
|
* ext/alsa/gstalsasrc.c: (set_hwparams):
|
||||||
|
* ext/gio/gstgio.c: (gst_gio_uri_handler_get_uri):
|
||||||
|
* ext/ogg/gstoggmux.h:
|
||||||
|
* ext/ogg/gstogmparse.c:
|
||||||
|
* gst-libs/gst/audio/audio.c:
|
||||||
|
* gst-libs/gst/fft/kiss_fft_f64.c: (kiss_fft_f64_alloc):
|
||||||
|
* gst-libs/gst/pbutils/missing-plugins.c:
|
||||||
|
(gst_missing_uri_sink_message_new),
|
||||||
|
(gst_missing_element_message_new),
|
||||||
|
(gst_missing_decoder_message_new),
|
||||||
|
(gst_missing_encoder_message_new):
|
||||||
|
* gst-libs/gst/rtp/gstbasertppayload.c:
|
||||||
|
* gst-libs/gst/rtp/gstrtcpbuffer.c:
|
||||||
|
(gst_rtcp_packet_bye_get_reason):
|
||||||
|
* gst/audioconvert/gstaudioconvert.c:
|
||||||
|
* gst/audioresample/gstaudioresample.c:
|
||||||
|
* gst/ffmpegcolorspace/imgconvert.c:
|
||||||
|
* gst/playback/test.c: (gen_video_element), (gen_audio_element):
|
||||||
|
* gst/typefind/gsttypefindfunctions.c:
|
||||||
|
* gst/videoscale/vs_4tap.c:
|
||||||
|
* gst/videoscale/vs_4tap.h:
|
||||||
|
* sys/v4l/gstv4lelement.c:
|
||||||
|
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_get_any_caps):
|
||||||
|
* sys/v4l/v4l_calls.c:
|
||||||
|
* sys/v4l/v4lsrc_calls.c: (gst_v4lsrc_capture_init),
|
||||||
|
(gst_v4lsrc_try_capture):
|
||||||
|
* sys/ximage/ximagesink.c: (gst_ximagesink_check_xshm_calls),
|
||||||
|
(gst_ximagesink_ximage_new):
|
||||||
|
* sys/xvimage/xvimagesink.c: (gst_xvimagesink_check_xshm_calls),
|
||||||
|
(gst_xvimagesink_xvimage_new):
|
||||||
|
* tests/check/elements/audioconvert.c:
|
||||||
|
* tests/check/elements/audioresample.c:
|
||||||
|
(fail_unless_perfect_stream):
|
||||||
|
* tests/check/elements/audiotestsrc.c: (setup_audiotestsrc):
|
||||||
|
* tests/check/elements/decodebin.c:
|
||||||
|
* tests/check/elements/gdpdepay.c: (setup_gdpdepay),
|
||||||
|
(setup_gdpdepay_streamheader):
|
||||||
|
* tests/check/elements/gdppay.c: (setup_gdppay), (GST_START_TEST),
|
||||||
|
(setup_gdppay_streamheader):
|
||||||
|
* tests/check/elements/gnomevfssink.c: (setup_gnomevfssink):
|
||||||
|
* tests/check/elements/multifdsink.c: (setup_multifdsink):
|
||||||
|
* tests/check/elements/textoverlay.c:
|
||||||
|
* tests/check/elements/videorate.c: (setup_videorate):
|
||||||
|
* tests/check/elements/videotestsrc.c: (setup_videotestsrc):
|
||||||
|
* tests/check/elements/volume.c: (setup_volume):
|
||||||
|
* tests/check/elements/vorbisdec.c: (setup_vorbisdec):
|
||||||
|
* tests/check/elements/vorbistag.c:
|
||||||
|
* tests/check/generic/clock-selection.c:
|
||||||
|
* tests/check/generic/states.c: (setup), (teardown):
|
||||||
|
* tests/check/libs/cddabasesrc.c:
|
||||||
|
* tests/check/libs/video.c:
|
||||||
|
* tests/check/pipelines/gio.c:
|
||||||
|
* tests/check/pipelines/oggmux.c:
|
||||||
|
* tests/check/pipelines/simple-launch-lines.c:
|
||||||
|
(simple_launch_lines_suite):
|
||||||
|
* tests/check/pipelines/streamheader.c:
|
||||||
|
* tests/check/pipelines/theoraenc.c:
|
||||||
|
* tests/check/pipelines/vorbisdec.c:
|
||||||
|
* tests/check/pipelines/vorbisenc.c:
|
||||||
|
* tests/examples/seek/scrubby.c:
|
||||||
|
* tests/examples/seek/seek.c: (query_positions_elems),
|
||||||
|
(query_positions_pads):
|
||||||
|
* tests/icles/stress-xoverlay.c: (myclock):
|
||||||
|
Correct all relevant warnings found by the sparse semantic code
|
||||||
|
analyzer. This include marking several symbols static, using
|
||||||
|
NULL instead of 0 for pointers and using "foo (void)" instead
|
||||||
|
of "foo ()" for declarations.
|
||||||
|
|
||||||
|
* win32/common/libgstrtp.def:
|
||||||
|
Add gst_rtp_buffer_set_extension_data to the symbol definition file.
|
||||||
|
|
||||||
2008-03-02 Tim-Philipp Müller <tim at centricular dot net>
|
2008-03-02 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
Patch by: José Alburquerque <jaalburqu svn gnome org>
|
Patch by: José Alburquerque <jaalburqu svn gnome org>
|
||||||
|
|
|
@ -47,7 +47,7 @@ gst_alsa_mixer_track_get_type (void)
|
||||||
sizeof (GstAlsaMixerTrack),
|
sizeof (GstAlsaMixerTrack),
|
||||||
0,
|
0,
|
||||||
(GInstanceInitFunc) gst_alsa_mixer_track_init,
|
(GInstanceInitFunc) gst_alsa_mixer_track_init,
|
||||||
0
|
NULL
|
||||||
};
|
};
|
||||||
|
|
||||||
track_type =
|
track_type =
|
||||||
|
|
|
@ -371,7 +371,7 @@ retry:
|
||||||
no_channels);
|
no_channels);
|
||||||
/* set the stream rate */
|
/* set the stream rate */
|
||||||
rrate = alsa->rate;
|
rrate = alsa->rate;
|
||||||
CHECK (snd_pcm_hw_params_set_rate_near (alsa->handle, params, &rrate, 0),
|
CHECK (snd_pcm_hw_params_set_rate_near (alsa->handle, params, &rrate, NULL),
|
||||||
no_rate);
|
no_rate);
|
||||||
if (rrate != alsa->rate)
|
if (rrate != alsa->rate)
|
||||||
goto rate_match;
|
goto rate_match;
|
||||||
|
|
|
@ -363,7 +363,7 @@ set_hwparams (GstAlsaSrc * alsa)
|
||||||
no_channels);
|
no_channels);
|
||||||
/* set the stream rate */
|
/* set the stream rate */
|
||||||
rrate = alsa->rate;
|
rrate = alsa->rate;
|
||||||
CHECK (snd_pcm_hw_params_set_rate_near (alsa->handle, params, &rrate, 0),
|
CHECK (snd_pcm_hw_params_set_rate_near (alsa->handle, params, &rrate, NULL),
|
||||||
no_rate);
|
no_rate);
|
||||||
if (rrate != alsa->rate)
|
if (rrate != alsa->rate)
|
||||||
goto rate_match;
|
goto rate_match;
|
||||||
|
|
|
@ -127,7 +127,7 @@ gst_gio_uri_handler_get_uri (GstURIHandler * handler)
|
||||||
GstElement *element = GST_ELEMENT (handler);
|
GstElement *element = GST_ELEMENT (handler);
|
||||||
const gchar *uri;
|
const gchar *uri;
|
||||||
|
|
||||||
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
|
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
|
||||||
|
|
||||||
g_object_get (G_OBJECT (element), "location", &uri, NULL);
|
g_object_get (G_OBJECT (element), "location", &uri, NULL);
|
||||||
|
|
||||||
|
|
|
@ -122,6 +122,8 @@ struct _GstOggMuxClass
|
||||||
GstElementClass parent_class;
|
GstElementClass parent_class;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
GType gst_ogg_mux_get_type (void);
|
||||||
|
|
||||||
G_END_DECLS
|
G_END_DECLS
|
||||||
|
|
||||||
#endif /* __GST_OGG_MUX_H__ */
|
#endif /* __GST_OGG_MUX_H__ */
|
||||||
|
|
|
@ -231,7 +231,7 @@ gst_ogm_audio_parse_get_type (void)
|
||||||
return ogm_audio_parse_type;
|
return ogm_audio_parse_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
GType
|
static GType
|
||||||
gst_ogm_video_parse_get_type (void)
|
gst_ogm_video_parse_get_type (void)
|
||||||
{
|
{
|
||||||
static GType ogm_video_parse_type = 0;
|
static GType ogm_video_parse_type = 0;
|
||||||
|
@ -257,7 +257,7 @@ gst_ogm_video_parse_get_type (void)
|
||||||
return ogm_video_parse_type;
|
return ogm_video_parse_type;
|
||||||
}
|
}
|
||||||
|
|
||||||
GType
|
static GType
|
||||||
gst_ogm_text_parse_get_type (void)
|
gst_ogm_text_parse_get_type (void)
|
||||||
{
|
{
|
||||||
static GType ogm_text_parse_type = 0;
|
static GType ogm_text_parse_type = 0;
|
||||||
|
|
|
@ -239,6 +239,7 @@ typedef enum
|
||||||
GST_AUDIO_FIELD_SIGNED = (1 << 5),
|
GST_AUDIO_FIELD_SIGNED = (1 << 5),
|
||||||
} GstAudioFieldFlag;
|
} GstAudioFieldFlag;
|
||||||
#endif /* GST_DISABLE_DEPRECATED */
|
#endif /* GST_DISABLE_DEPRECATED */
|
||||||
|
|
||||||
void
|
void
|
||||||
gst_audio_structure_set_int (GstStructure * structure, GstAudioFieldFlag flag)
|
gst_audio_structure_set_int (GstStructure * structure, GstAudioFieldFlag flag)
|
||||||
{
|
{
|
||||||
|
|
|
@ -344,6 +344,8 @@ kiss_fft_f64_cfg
|
||||||
kiss_fft_f64_alloc (int nfft, int inverse_fft, void *mem, size_t * lenmem)
|
kiss_fft_f64_alloc (int nfft, int inverse_fft, void *mem, size_t * lenmem)
|
||||||
{
|
{
|
||||||
kiss_fft_f64_cfg st = NULL;
|
kiss_fft_f64_cfg st = NULL;
|
||||||
|
const double pi =
|
||||||
|
3.141592653589793238462643383279502884197169399375105820974944;
|
||||||
size_t memneeded = sizeof (struct kiss_fft_f64_state)
|
size_t memneeded = sizeof (struct kiss_fft_f64_state)
|
||||||
+ sizeof (kiss_fft_f64_cpx) * (nfft - 1); /* twiddle factors */
|
+ sizeof (kiss_fft_f64_cpx) * (nfft - 1); /* twiddle factors */
|
||||||
|
|
||||||
|
@ -361,8 +363,6 @@ kiss_fft_f64_alloc (int nfft, int inverse_fft, void *mem, size_t * lenmem)
|
||||||
st->inverse = inverse_fft;
|
st->inverse = inverse_fft;
|
||||||
|
|
||||||
for (i = 0; i < nfft; ++i) {
|
for (i = 0; i < nfft; ++i) {
|
||||||
const double pi =
|
|
||||||
3.141592653589793238462643383279502884197169399375105820974944;
|
|
||||||
double phase = -2 * pi * i / nfft;
|
double phase = -2 * pi * i / nfft;
|
||||||
|
|
||||||
if (st->inverse)
|
if (st->inverse)
|
||||||
|
|
|
@ -202,9 +202,9 @@ gst_missing_uri_sink_message_new (GstElement * element, const gchar * protocol)
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
gchar *description;
|
gchar *description;
|
||||||
|
|
||||||
g_return_val_if_fail (element != NULL, FALSE);
|
g_return_val_if_fail (element != NULL, NULL);
|
||||||
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
|
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
|
||||||
g_return_val_if_fail (protocol != NULL, FALSE);
|
g_return_val_if_fail (protocol != NULL, NULL);
|
||||||
|
|
||||||
description = gst_pb_utils_get_sink_description (protocol);
|
description = gst_pb_utils_get_sink_description (protocol);
|
||||||
|
|
||||||
|
@ -235,9 +235,9 @@ gst_missing_element_message_new (GstElement * element,
|
||||||
GstStructure *s;
|
GstStructure *s;
|
||||||
gchar *description;
|
gchar *description;
|
||||||
|
|
||||||
g_return_val_if_fail (element != NULL, FALSE);
|
g_return_val_if_fail (element != NULL, NULL);
|
||||||
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
|
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
|
||||||
g_return_val_if_fail (factory_name != NULL, FALSE);
|
g_return_val_if_fail (factory_name != NULL, NULL);
|
||||||
|
|
||||||
description = gst_pb_utils_get_element_description (factory_name);
|
description = gst_pb_utils_get_element_description (factory_name);
|
||||||
|
|
||||||
|
@ -268,13 +268,13 @@ gst_missing_decoder_message_new (GstElement * element,
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
gchar *description;
|
gchar *description;
|
||||||
|
|
||||||
g_return_val_if_fail (element != NULL, FALSE);
|
g_return_val_if_fail (element != NULL, NULL);
|
||||||
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
|
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
|
||||||
g_return_val_if_fail (decode_caps != NULL, FALSE);
|
g_return_val_if_fail (decode_caps != NULL, NULL);
|
||||||
g_return_val_if_fail (GST_IS_CAPS (decode_caps), FALSE);
|
g_return_val_if_fail (GST_IS_CAPS (decode_caps), NULL);
|
||||||
g_return_val_if_fail (!gst_caps_is_any (decode_caps), FALSE);
|
g_return_val_if_fail (!gst_caps_is_any (decode_caps), NULL);
|
||||||
g_return_val_if_fail (!gst_caps_is_empty (decode_caps), FALSE);
|
g_return_val_if_fail (!gst_caps_is_empty (decode_caps), NULL);
|
||||||
g_return_val_if_fail (gst_caps_is_fixed (decode_caps), FALSE);
|
g_return_val_if_fail (gst_caps_is_fixed (decode_caps), NULL);
|
||||||
|
|
||||||
description = gst_pb_utils_get_decoder_description (decode_caps);
|
description = gst_pb_utils_get_decoder_description (decode_caps);
|
||||||
caps = copy_and_clean_caps (decode_caps);
|
caps = copy_and_clean_caps (decode_caps);
|
||||||
|
@ -308,13 +308,13 @@ gst_missing_encoder_message_new (GstElement * element,
|
||||||
GstCaps *caps;
|
GstCaps *caps;
|
||||||
gchar *description;
|
gchar *description;
|
||||||
|
|
||||||
g_return_val_if_fail (element != NULL, FALSE);
|
g_return_val_if_fail (element != NULL, NULL);
|
||||||
g_return_val_if_fail (GST_IS_ELEMENT (element), FALSE);
|
g_return_val_if_fail (GST_IS_ELEMENT (element), NULL);
|
||||||
g_return_val_if_fail (encode_caps != NULL, FALSE);
|
g_return_val_if_fail (encode_caps != NULL, NULL);
|
||||||
g_return_val_if_fail (GST_IS_CAPS (encode_caps), FALSE);
|
g_return_val_if_fail (GST_IS_CAPS (encode_caps), NULL);
|
||||||
g_return_val_if_fail (!gst_caps_is_any (encode_caps), FALSE);
|
g_return_val_if_fail (!gst_caps_is_any (encode_caps), NULL);
|
||||||
g_return_val_if_fail (!gst_caps_is_empty (encode_caps), FALSE);
|
g_return_val_if_fail (!gst_caps_is_empty (encode_caps), NULL);
|
||||||
g_return_val_if_fail (gst_caps_is_fixed (encode_caps), FALSE);
|
g_return_val_if_fail (gst_caps_is_fixed (encode_caps), NULL);
|
||||||
|
|
||||||
description = gst_pb_utils_get_encoder_description (encode_caps);
|
description = gst_pb_utils_get_encoder_description (encode_caps);
|
||||||
caps = copy_and_clean_caps (encode_caps);
|
caps = copy_and_clean_caps (encode_caps);
|
||||||
|
|
|
@ -438,7 +438,7 @@ gst_basertppayload_set_options (GstBaseRTPPayload * payload,
|
||||||
payload->clock_rate = clock_rate;
|
payload->clock_rate = clock_rate;
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
static gboolean
|
||||||
copy_fixed (GQuark field_id, const GValue * value, GstStructure * dest)
|
copy_fixed (GQuark field_id, const GValue * value, GstStructure * dest)
|
||||||
{
|
{
|
||||||
if (gst_value_is_fixed (value)) {
|
if (gst_value_is_fixed (value)) {
|
||||||
|
|
|
@ -1533,7 +1533,7 @@ gst_rtcp_packet_bye_get_reason (GstRTCPPacket * packet)
|
||||||
guint8 len;
|
guint8 len;
|
||||||
|
|
||||||
g_return_val_if_fail (packet != NULL, NULL);
|
g_return_val_if_fail (packet != NULL, NULL);
|
||||||
g_return_val_if_fail (packet->type == GST_RTCP_TYPE_BYE, 0);
|
g_return_val_if_fail (packet->type == GST_RTCP_TYPE_BYE, NULL);
|
||||||
g_return_val_if_fail (GST_IS_BUFFER (packet->buffer), NULL);
|
g_return_val_if_fail (GST_IS_BUFFER (packet->buffer), NULL);
|
||||||
|
|
||||||
roffset = get_reason_offset (packet);
|
roffset = get_reason_offset (packet);
|
||||||
|
|
|
@ -723,7 +723,7 @@ static const GstAudioChannelPosition default_positions[8][8] = {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const GValue *
|
static const GValue *
|
||||||
find_suitable_channel_layout (const GValue * val, guint chans)
|
find_suitable_channel_layout (const GValue * val, guint chans)
|
||||||
{
|
{
|
||||||
/* if output layout is fixed already and looks sane, we're done */
|
/* if output layout is fixed already and looks sane, we're done */
|
||||||
|
|
|
@ -50,7 +50,7 @@
|
||||||
#include <gst/audio/audio.h>
|
#include <gst/audio/audio.h>
|
||||||
#include <gst/base/gstbasetransform.h>
|
#include <gst/base/gstbasetransform.h>
|
||||||
|
|
||||||
GST_DEBUG_CATEGORY (audioresample_debug);
|
GST_DEBUG_CATEGORY_STATIC (audioresample_debug);
|
||||||
#define GST_CAT_DEFAULT audioresample_debug
|
#define GST_CAT_DEFAULT audioresample_debug
|
||||||
|
|
||||||
/* elementfactory information */
|
/* elementfactory information */
|
||||||
|
|
|
@ -439,7 +439,8 @@ avcodec_get_pix_fmt (const char *name)
|
||||||
return pix_fmt_info[i].format;
|
return pix_fmt_info[i].format;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
#if 0
|
||||||
|
static int
|
||||||
avpicture_layout (const AVPicture * src, int pix_fmt, int width, int height,
|
avpicture_layout (const AVPicture * src, int pix_fmt, int width, int height,
|
||||||
unsigned char *dest, int dest_size)
|
unsigned char *dest, int dest_size)
|
||||||
{
|
{
|
||||||
|
@ -490,6 +491,7 @@ avpicture_layout (const AVPicture * src, int pix_fmt, int width, int height,
|
||||||
|
|
||||||
return size;
|
return size;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int
|
int
|
||||||
avpicture_get_size (int pix_fmt, int width, int height)
|
avpicture_get_size (int pix_fmt, int width, int height)
|
||||||
|
@ -670,7 +672,7 @@ img_copy_plane (uint8_t * dst, int dst_wrap,
|
||||||
/**
|
/**
|
||||||
* Copy image 'src' to 'dst'.
|
* Copy image 'src' to 'dst'.
|
||||||
*/
|
*/
|
||||||
void
|
static void
|
||||||
img_copy (AVPicture * dst, const AVPicture * src,
|
img_copy (AVPicture * dst, const AVPicture * src,
|
||||||
int pix_fmt, int width, int height)
|
int pix_fmt, int width, int height)
|
||||||
{
|
{
|
||||||
|
@ -2198,7 +2200,7 @@ get_convert_table_entry (int src_pix_fmt, int dst_pix_fmt)
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
static int
|
||||||
avpicture_alloc (AVPicture * picture, int pix_fmt, int width, int height)
|
avpicture_alloc (AVPicture * picture, int pix_fmt, int width, int height)
|
||||||
{
|
{
|
||||||
unsigned int size;
|
unsigned int size;
|
||||||
|
@ -2215,7 +2217,7 @@ fail:
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
avpicture_free (AVPicture * picture)
|
avpicture_free (AVPicture * picture)
|
||||||
{
|
{
|
||||||
av_free (picture->data[0]);
|
av_free (picture->data[0]);
|
||||||
|
@ -2593,6 +2595,7 @@ img_get_alpha_info (const AVPicture * src, int pix_fmt, int width, int height)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* filter parameters: [-1 4 2 4 -1] // 8 */
|
/* filter parameters: [-1 4 2 4 -1] // 8 */
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
deinterlace_line (uint8_t * dst,
|
deinterlace_line (uint8_t * dst,
|
||||||
const uint8_t * lum_m4, const uint8_t * lum_m3,
|
const uint8_t * lum_m4, const uint8_t * lum_m3,
|
||||||
|
@ -2684,10 +2687,12 @@ deinterlace_line_inplace (uint8_t * lum_m4, uint8_t * lum_m3, uint8_t * lum_m2,
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* deinterlacing : 2 temporal taps, 3 spatial taps linear filter. The
|
/* deinterlacing : 2 temporal taps, 3 spatial taps linear filter. The
|
||||||
top field is copied as is, but the bottom field is deinterlaced
|
top field is copied as is, but the bottom field is deinterlaced
|
||||||
against the top field. */
|
against the top field. */
|
||||||
|
#if 0
|
||||||
static void
|
static void
|
||||||
deinterlace_bottom_field (uint8_t * dst, int dst_wrap,
|
deinterlace_bottom_field (uint8_t * dst, int dst_wrap,
|
||||||
const uint8_t * src1, int src_wrap, int width, int height)
|
const uint8_t * src1, int src_wrap, int width, int height)
|
||||||
|
@ -2743,10 +2748,11 @@ deinterlace_bottom_field_inplace (uint8_t * src1, int src_wrap,
|
||||||
deinterlace_line_inplace (buf, src_m1, src_0, src_0, src_0, width);
|
deinterlace_line_inplace (buf, src_m1, src_0, src_0, src_0, width);
|
||||||
av_free (buf);
|
av_free (buf);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* deinterlace - if not supported return -1 */
|
/* deinterlace - if not supported return -1 */
|
||||||
int
|
#if 0
|
||||||
|
static int
|
||||||
avpicture_deinterlace (AVPicture * dst, const AVPicture * src,
|
avpicture_deinterlace (AVPicture * dst, const AVPicture * src,
|
||||||
int pix_fmt, int width, int height)
|
int pix_fmt, int width, int height)
|
||||||
{
|
{
|
||||||
|
@ -2789,5 +2795,6 @@ avpicture_deinterlace (AVPicture * dst, const AVPicture * src,
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#undef FIX
|
#undef FIX
|
||||||
|
|
|
@ -27,7 +27,7 @@
|
||||||
static GMainLoop *loop;
|
static GMainLoop *loop;
|
||||||
|
|
||||||
static GstElement *
|
static GstElement *
|
||||||
gen_video_element ()
|
gen_video_element (void)
|
||||||
{
|
{
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
GstElement *conv;
|
GstElement *conv;
|
||||||
|
@ -50,7 +50,7 @@ gen_video_element ()
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstElement *
|
static GstElement *
|
||||||
gen_audio_element ()
|
gen_audio_element (void)
|
||||||
{
|
{
|
||||||
GstElement *element;
|
GstElement *element;
|
||||||
GstElement *conv;
|
GstElement *conv;
|
||||||
|
|
|
@ -1421,7 +1421,7 @@ static GstStaticCaps mpegts_caps = GST_STATIC_CAPS ("video/mpegts, "
|
||||||
|
|
||||||
/* Helper function to search ahead at intervals of packet_size for mpegts
|
/* Helper function to search ahead at intervals of packet_size for mpegts
|
||||||
* headers */
|
* headers */
|
||||||
gint
|
static gint
|
||||||
mpeg_ts_probe_headers (GstTypeFind * tf, guint64 offset, gint packet_size)
|
mpeg_ts_probe_headers (GstTypeFind * tf, guint64 offset, gint packet_size)
|
||||||
{
|
{
|
||||||
/* We always enter this function having found at least one header already */
|
/* We always enter this function having found at least one header already */
|
||||||
|
|
|
@ -28,6 +28,8 @@
|
||||||
#include "vs_image.h"
|
#include "vs_image.h"
|
||||||
#include "vs_scanline.h"
|
#include "vs_scanline.h"
|
||||||
|
|
||||||
|
#include "vs_4tap.h"
|
||||||
|
|
||||||
#include <liboil/liboil.h>
|
#include <liboil/liboil.h>
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
|
@ -45,9 +47,9 @@
|
||||||
#define rint(x) (floor((x)+0.5))
|
#define rint(x) (floor((x)+0.5))
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int16_t vs_4tap_taps[256][4];
|
static int16_t vs_4tap_taps[256][4];
|
||||||
|
|
||||||
double
|
static double
|
||||||
vs_4tap_func (double x)
|
vs_4tap_func (double x)
|
||||||
{
|
{
|
||||||
#if 0
|
#if 0
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
|
|
||||||
void vs_4tap_init (void);
|
void vs_4tap_init (void);
|
||||||
void vs_scanline_resample_4tap_Y (uint8_t *dest, uint8_t *src,
|
void vs_scanline_resample_4tap_Y (uint8_t *dest, uint8_t *src,
|
||||||
int n, int *xacc, int increment);
|
int n, int src_width, int *xacc, int increment);
|
||||||
void vs_scanline_merge_4tap_Y (uint8_t *dest, uint8_t *src1, uint8_t *src2,
|
void vs_scanline_merge_4tap_Y (uint8_t *dest, uint8_t *src1, uint8_t *src2,
|
||||||
uint8_t *src3, uint8_t *src4, int n, int acc);
|
uint8_t *src3, uint8_t *src4, int n, int acc);
|
||||||
void vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
|
void vs_image_scale_4tap_Y (const VSImage * dest, const VSImage * src,
|
||||||
|
|
|
@ -245,7 +245,7 @@ gst_v4l_property_probe_interface_init (GstPropertyProbeInterface * iface)
|
||||||
}
|
}
|
||||||
|
|
||||||
#define GST_TYPE_V4L_DEVICE_FLAGS (gst_v4l_device_get_type ())
|
#define GST_TYPE_V4L_DEVICE_FLAGS (gst_v4l_device_get_type ())
|
||||||
GType
|
static GType
|
||||||
gst_v4l_device_get_type (void)
|
gst_v4l_device_get_type (void)
|
||||||
{
|
{
|
||||||
static GType v4l_device_type = 0;
|
static GType v4l_device_type = 0;
|
||||||
|
|
|
@ -349,7 +349,7 @@ gst_v4lsrc_palette_to_caps (int palette)
|
||||||
}
|
}
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
gst_v4lsrc_get_any_caps ()
|
gst_v4lsrc_get_any_caps (void)
|
||||||
{
|
{
|
||||||
gint i;
|
gint i;
|
||||||
GstCaps *caps = gst_caps_new_empty (), *one;
|
GstCaps *caps = gst_caps_new_empty (), *one;
|
||||||
|
|
|
@ -277,7 +277,7 @@ gst_v4l_close (GstV4lElement * v4lelement)
|
||||||
* return value: the number of video input channels
|
* return value: the number of video input channels
|
||||||
******************************************************/
|
******************************************************/
|
||||||
|
|
||||||
gint
|
static gint
|
||||||
gst_v4l_get_num_chans (GstV4lElement * v4lelement)
|
gst_v4l_get_num_chans (GstV4lElement * v4lelement)
|
||||||
{
|
{
|
||||||
GST_DEBUG_OBJECT (v4lelement, "getting number of channels");
|
GST_DEBUG_OBJECT (v4lelement, "getting number of channels");
|
||||||
|
|
|
@ -49,7 +49,7 @@ GST_DEBUG_CATEGORY_EXTERN (v4l_debug);
|
||||||
|
|
||||||
#ifndef GST_DISABLE_GST_DEBUG
|
#ifndef GST_DISABLE_GST_DEBUG
|
||||||
/* palette names */
|
/* palette names */
|
||||||
const char *v4l_palette_name[] = {
|
static const char *v4l_palette_name[] = {
|
||||||
"", /* 0 */
|
"", /* 0 */
|
||||||
"grayscale", /* VIDEO_PALETTE_GREY */
|
"grayscale", /* VIDEO_PALETTE_GREY */
|
||||||
"Hi-420", /* VIDEO_PALETTE_HI420 */
|
"Hi-420", /* VIDEO_PALETTE_HI420 */
|
||||||
|
@ -197,7 +197,7 @@ gst_v4lsrc_capture_init (GstV4lSrc * v4lsrc)
|
||||||
v4lsrc->cond_queue_state = g_cond_new ();
|
v4lsrc->cond_queue_state = g_cond_new ();
|
||||||
|
|
||||||
/* Map the buffers */
|
/* Map the buffers */
|
||||||
GST_V4LELEMENT (v4lsrc)->buffer = mmap (0, v4lsrc->mbuf.size,
|
GST_V4LELEMENT (v4lsrc)->buffer = mmap (NULL, v4lsrc->mbuf.size,
|
||||||
PROT_READ | PROT_WRITE, MAP_SHARED, GST_V4LELEMENT (v4lsrc)->video_fd, 0);
|
PROT_READ | PROT_WRITE, MAP_SHARED, GST_V4LELEMENT (v4lsrc)->video_fd, 0);
|
||||||
if (GST_V4LELEMENT (v4lsrc)->buffer == MAP_FAILED) {
|
if (GST_V4LELEMENT (v4lsrc)->buffer == MAP_FAILED) {
|
||||||
GST_ELEMENT_ERROR (v4lsrc, RESOURCE, OPEN_READ_WRITE, (NULL),
|
GST_ELEMENT_ERROR (v4lsrc, RESOURCE, OPEN_READ_WRITE, (NULL),
|
||||||
|
@ -461,7 +461,7 @@ gst_v4lsrc_try_capture (GstV4lSrc * v4lsrc, gint width, gint height,
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
/* Map the buffers */
|
/* Map the buffers */
|
||||||
buffer = mmap (0, vmbuf.size, PROT_READ | PROT_WRITE,
|
buffer = mmap (NULL, vmbuf.size, PROT_READ | PROT_WRITE,
|
||||||
MAP_SHARED, GST_V4LELEMENT (v4lsrc)->video_fd, 0);
|
MAP_SHARED, GST_V4LELEMENT (v4lsrc)->video_fd, 0);
|
||||||
if (buffer == MAP_FAILED) {
|
if (buffer == MAP_FAILED) {
|
||||||
GST_ELEMENT_ERROR (v4lsrc, RESOURCE, OPEN_READ_WRITE, (NULL),
|
GST_ELEMENT_ERROR (v4lsrc, RESOURCE, OPEN_READ_WRITE, (NULL),
|
||||||
|
@ -634,7 +634,7 @@ static void gst_v4lsrc_buffer_finalize (GstV4lSrcBuffer * v4lsrc_buffer);
|
||||||
|
|
||||||
static GstBufferClass *v4lbuffer_parent_class = NULL;
|
static GstBufferClass *v4lbuffer_parent_class = NULL;
|
||||||
|
|
||||||
GType
|
static GType
|
||||||
gst_v4lsrc_buffer_get_type (void)
|
gst_v4lsrc_buffer_get_type (void)
|
||||||
{
|
{
|
||||||
static GType _gst_v4lsrc_buffer_type;
|
static GType _gst_v4lsrc_buffer_type;
|
||||||
|
|
|
@ -275,7 +275,7 @@ gst_ximage_buffer_class_init (gpointer g_class, gpointer class_data)
|
||||||
gst_ximage_buffer_finalize;
|
gst_ximage_buffer_finalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
GType
|
static GType
|
||||||
gst_ximage_buffer_get_type (void)
|
gst_ximage_buffer_get_type (void)
|
||||||
{
|
{
|
||||||
static GType _gst_ximage_buffer_type;
|
static GType _gst_ximage_buffer_type;
|
||||||
|
@ -361,18 +361,18 @@ gst_ximagesink_check_xshm_calls (GstXImageSink * ximagesink,
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
SHMInfo.shmaddr = shmat (SHMInfo.shmid, 0, 0);
|
SHMInfo.shmaddr = shmat (SHMInfo.shmid, NULL, 0);
|
||||||
if (SHMInfo.shmaddr == ((void *) -1)) {
|
if (SHMInfo.shmaddr == ((void *) -1)) {
|
||||||
GST_WARNING ("Failed to shmat: %s", g_strerror (errno));
|
GST_WARNING ("Failed to shmat: %s", g_strerror (errno));
|
||||||
/* Clean up shm seg */
|
/* Clean up shm seg */
|
||||||
shmctl (SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete the shared memory segment as soon as we manage to attach.
|
/* Delete the shared memory segment as soon as we manage to attach.
|
||||||
* This way, it will be deleted as soon as we detach later, and not
|
* This way, it will be deleted as soon as we detach later, and not
|
||||||
* leaked if we crash. */
|
* leaked if we crash. */
|
||||||
shmctl (SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
|
|
||||||
ximage->data = SHMInfo.shmaddr;
|
ximage->data = SHMInfo.shmaddr;
|
||||||
SHMInfo.readOnly = FALSE;
|
SHMInfo.readOnly = FALSE;
|
||||||
|
@ -476,7 +476,7 @@ gst_ximagesink_ximage_new (GstXImageSink * ximagesink, GstCaps * caps)
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
ximage->SHMInfo.shmaddr = shmat (ximage->SHMInfo.shmid, 0, 0);
|
ximage->SHMInfo.shmaddr = shmat (ximage->SHMInfo.shmid, NULL, 0);
|
||||||
if (ximage->SHMInfo.shmaddr == ((void *) -1)) {
|
if (ximage->SHMInfo.shmaddr == ((void *) -1)) {
|
||||||
g_mutex_unlock (ximagesink->x_lock);
|
g_mutex_unlock (ximagesink->x_lock);
|
||||||
GST_ELEMENT_ERROR (ximagesink, RESOURCE, WRITE,
|
GST_ELEMENT_ERROR (ximagesink, RESOURCE, WRITE,
|
||||||
|
@ -484,14 +484,14 @@ gst_ximagesink_ximage_new (GstXImageSink * ximagesink, GstCaps * caps)
|
||||||
ximage->width, ximage->height),
|
ximage->width, ximage->height),
|
||||||
("Failed to shmat: %s", g_strerror (errno)));
|
("Failed to shmat: %s", g_strerror (errno)));
|
||||||
/* Clean up the shared memory segment */
|
/* Clean up the shared memory segment */
|
||||||
shmctl (ximage->SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (ximage->SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now that we've attached, we can delete the shared memory segment.
|
/* Now that we've attached, we can delete the shared memory segment.
|
||||||
* This way, it will be deleted as soon as we detach later, and not
|
* This way, it will be deleted as soon as we detach later, and not
|
||||||
* leaked if we crash. */
|
* leaked if we crash. */
|
||||||
shmctl (ximage->SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (ximage->SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
|
|
||||||
ximage->ximage->data = ximage->SHMInfo.shmaddr;
|
ximage->ximage->data = ximage->SHMInfo.shmaddr;
|
||||||
ximage->SHMInfo.readOnly = FALSE;
|
ximage->SHMInfo.readOnly = FALSE;
|
||||||
|
|
|
@ -369,7 +369,7 @@ gst_xvimage_buffer_class_init (gpointer g_class, gpointer class_data)
|
||||||
gst_xvimage_buffer_finalize;
|
gst_xvimage_buffer_finalize;
|
||||||
}
|
}
|
||||||
|
|
||||||
GType
|
static GType
|
||||||
gst_xvimage_buffer_get_type (void)
|
gst_xvimage_buffer_get_type (void)
|
||||||
{
|
{
|
||||||
static GType _gst_xvimage_buffer_type;
|
static GType _gst_xvimage_buffer_type;
|
||||||
|
@ -453,18 +453,18 @@ gst_xvimagesink_check_xshm_calls (GstXContext * xcontext)
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
SHMInfo.shmaddr = shmat (SHMInfo.shmid, 0, 0);
|
SHMInfo.shmaddr = shmat (SHMInfo.shmid, NULL, 0);
|
||||||
if (SHMInfo.shmaddr == ((void *) -1)) {
|
if (SHMInfo.shmaddr == ((void *) -1)) {
|
||||||
GST_WARNING ("Failed to shmat: %s", g_strerror (errno));
|
GST_WARNING ("Failed to shmat: %s", g_strerror (errno));
|
||||||
/* Clean up the shared memory segment */
|
/* Clean up the shared memory segment */
|
||||||
shmctl (SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
goto beach;
|
goto beach;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete the shared memory segment as soon as we manage to attach.
|
/* Delete the shared memory segment as soon as we manage to attach.
|
||||||
* This way, it will be deleted as soon as we detach later, and not
|
* This way, it will be deleted as soon as we detach later, and not
|
||||||
* leaked if we crash. */
|
* leaked if we crash. */
|
||||||
shmctl (SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
|
|
||||||
xvimage->data = SHMInfo.shmaddr;
|
xvimage->data = SHMInfo.shmaddr;
|
||||||
SHMInfo.readOnly = FALSE;
|
SHMInfo.readOnly = FALSE;
|
||||||
|
@ -623,7 +623,7 @@ gst_xvimagesink_xvimage_new (GstXvImageSink * xvimagesink, GstCaps * caps)
|
||||||
goto beach_unlocked;
|
goto beach_unlocked;
|
||||||
}
|
}
|
||||||
|
|
||||||
xvimage->SHMInfo.shmaddr = shmat (xvimage->SHMInfo.shmid, 0, 0);
|
xvimage->SHMInfo.shmaddr = shmat (xvimage->SHMInfo.shmid, NULL, 0);
|
||||||
if (xvimage->SHMInfo.shmaddr == ((void *) -1)) {
|
if (xvimage->SHMInfo.shmaddr == ((void *) -1)) {
|
||||||
g_mutex_unlock (xvimagesink->x_lock);
|
g_mutex_unlock (xvimagesink->x_lock);
|
||||||
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, WRITE,
|
GST_ELEMENT_ERROR (xvimagesink, RESOURCE, WRITE,
|
||||||
|
@ -631,14 +631,14 @@ gst_xvimagesink_xvimage_new (GstXvImageSink * xvimagesink, GstCaps * caps)
|
||||||
xvimage->width, xvimage->height),
|
xvimage->width, xvimage->height),
|
||||||
("Failed to shmat: %s", g_strerror (errno)));
|
("Failed to shmat: %s", g_strerror (errno)));
|
||||||
/* Clean up the shared memory segment */
|
/* Clean up the shared memory segment */
|
||||||
shmctl (xvimage->SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (xvimage->SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
goto beach_unlocked;
|
goto beach_unlocked;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Delete the shared memory segment as soon as we manage to attach.
|
/* Delete the shared memory segment as soon as we manage to attach.
|
||||||
* This way, it will be deleted as soon as we detach later, and not
|
* This way, it will be deleted as soon as we detach later, and not
|
||||||
* leaked if we crash. */
|
* leaked if we crash. */
|
||||||
shmctl (xvimage->SHMInfo.shmid, IPC_RMID, 0);
|
shmctl (xvimage->SHMInfo.shmid, IPC_RMID, NULL);
|
||||||
|
|
||||||
xvimage->xvimage->data = xvimage->SHMInfo.shmaddr;
|
xvimage->xvimage->data = xvimage->SHMInfo.shmaddr;
|
||||||
xvimage->SHMInfo.readOnly = FALSE;
|
xvimage->SHMInfo.readOnly = FALSE;
|
||||||
|
|
|
@ -26,12 +26,10 @@
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
#include <gst/audio/multichannel.h>
|
#include <gst/audio/multichannel.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
|
|
||||||
#define CONVERT_CAPS_TEMPLATE_STRING \
|
#define CONVERT_CAPS_TEMPLATE_STRING \
|
||||||
"audio/x-raw-float, " \
|
"audio/x-raw-float, " \
|
||||||
|
@ -80,7 +78,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
);
|
);
|
||||||
|
|
||||||
/* takes over reference for outcaps */
|
/* takes over reference for outcaps */
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_audioconvert (GstCaps * outcaps)
|
setup_audioconvert (GstCaps * outcaps)
|
||||||
{
|
{
|
||||||
GstElement *audioconvert;
|
GstElement *audioconvert;
|
||||||
|
@ -106,7 +104,7 @@ setup_audioconvert (GstCaps * outcaps)
|
||||||
return audioconvert;
|
return audioconvert;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_audioconvert (GstElement * audioconvert)
|
cleanup_audioconvert (GstElement * audioconvert)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_audioconvert");
|
GST_DEBUG ("cleanup_audioconvert");
|
||||||
|
@ -850,7 +848,7 @@ GST_START_TEST (test_caps_negotiation)
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
audioconvert_suite (void)
|
audioconvert_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("audioconvert");
|
Suite *s = suite_create ("audioconvert");
|
||||||
|
|
|
@ -25,12 +25,10 @@
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
|
|
||||||
|
|
||||||
#define RESAMPLE_CAPS_TEMPLATE_STRING \
|
#define RESAMPLE_CAPS_TEMPLATE_STRING \
|
||||||
|
@ -53,7 +51,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS (RESAMPLE_CAPS_TEMPLATE_STRING)
|
GST_STATIC_CAPS (RESAMPLE_CAPS_TEMPLATE_STRING)
|
||||||
);
|
);
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_audioresample (int channels, int inrate, int outrate)
|
setup_audioresample (int channels, int inrate, int outrate)
|
||||||
{
|
{
|
||||||
GstElement *audioresample;
|
GstElement *audioresample;
|
||||||
|
@ -100,7 +98,7 @@ setup_audioresample (int channels, int inrate, int outrate)
|
||||||
return audioresample;
|
return audioresample;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_audioresample (GstElement * audioresample)
|
cleanup_audioresample (GstElement * audioresample)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_audioresample");
|
GST_DEBUG ("cleanup_audioresample");
|
||||||
|
@ -116,7 +114,7 @@ cleanup_audioresample (GstElement * audioresample)
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
fail_unless_perfect_stream ()
|
fail_unless_perfect_stream (void)
|
||||||
{
|
{
|
||||||
guint64 timestamp = 0L, duration = 0L;
|
guint64 timestamp = 0L, duration = 0L;
|
||||||
guint64 offset = 0L, offset_end = 0L;
|
guint64 offset = 0L, offset_end = 0L;
|
||||||
|
|
|
@ -24,12 +24,10 @@
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysinkpad;
|
static GstPad *mysinkpad;
|
||||||
|
|
||||||
|
|
||||||
#define CAPS_TEMPLATE_STRING \
|
#define CAPS_TEMPLATE_STRING \
|
||||||
|
@ -47,8 +45,8 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_STATIC_CAPS (CAPS_TEMPLATE_STRING)
|
GST_STATIC_CAPS (CAPS_TEMPLATE_STRING)
|
||||||
);
|
);
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_audiotestsrc ()
|
setup_audiotestsrc (void)
|
||||||
{
|
{
|
||||||
GstElement *audiotestsrc;
|
GstElement *audiotestsrc;
|
||||||
|
|
||||||
|
@ -60,7 +58,7 @@ setup_audiotestsrc ()
|
||||||
return audiotestsrc;
|
return audiotestsrc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_audiotestsrc (GstElement * audiotestsrc)
|
cleanup_audiotestsrc (GstElement * audiotestsrc)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_audiotestsrc");
|
GST_DEBUG ("cleanup_audiotestsrc");
|
||||||
|
@ -115,7 +113,7 @@ GST_START_TEST (test_all_waves)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
audiotestsrc_suite (void)
|
audiotestsrc_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("audiotestsrc");
|
Suite *s = suite_create ("audiotestsrc");
|
||||||
|
|
|
@ -25,7 +25,8 @@
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
|
||||||
const gchar dummytext[] = "Quick Brown Fox Jumps over a Lazy Frog Quick Brown "
|
static const gchar dummytext[] =
|
||||||
|
"Quick Brown Fox Jumps over a Lazy Frog Quick Brown "
|
||||||
"Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick "
|
"Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog Quick "
|
||||||
"Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog "
|
"Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy Frog "
|
||||||
"Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy "
|
"Quick Brown Fox Jumps over a Lazy Frog Quick Brown Fox Jumps over a Lazy "
|
||||||
|
|
|
@ -25,12 +25,10 @@
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
#include <gst/dataprotocol/dataprotocol.h>
|
#include <gst/dataprotocol/dataprotocol.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysrcpad, *mysinkpad, *myshsinkpad;
|
static GstPad *mysrcpad, *mysinkpad, *myshsinkpad;
|
||||||
|
|
||||||
#define AUDIO_CAPS_TEMPLATE_STRING \
|
#define AUDIO_CAPS_TEMPLATE_STRING \
|
||||||
"audio/x-raw-int, " \
|
"audio/x-raw-int, " \
|
||||||
|
@ -63,8 +61,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
);
|
);
|
||||||
|
|
||||||
/* takes over reference for outcaps */
|
/* takes over reference for outcaps */
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_gdpdepay ()
|
setup_gdpdepay (void)
|
||||||
{
|
{
|
||||||
GstElement *gdpdepay;
|
GstElement *gdpdepay;
|
||||||
|
|
||||||
|
@ -78,7 +76,7 @@ setup_gdpdepay ()
|
||||||
return gdpdepay;
|
return gdpdepay;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_gdpdepay (GstElement * gdpdepay)
|
cleanup_gdpdepay (GstElement * gdpdepay)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_gdpdepay");
|
GST_DEBUG ("cleanup_gdpdepay");
|
||||||
|
@ -266,8 +264,8 @@ static GstStaticPadTemplate shsinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_STATIC_CAPS ("application/x-gst-test-streamheader")
|
GST_STATIC_CAPS ("application/x-gst-test-streamheader")
|
||||||
);
|
);
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_gdpdepay_streamheader ()
|
setup_gdpdepay_streamheader (void)
|
||||||
{
|
{
|
||||||
GstElement *gdpdepay;
|
GstElement *gdpdepay;
|
||||||
|
|
||||||
|
@ -402,7 +400,7 @@ GST_END_TEST;
|
||||||
|
|
||||||
#endif /* ifndef HAVE_CPU_PPC64 */
|
#endif /* ifndef HAVE_CPU_PPC64 */
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
gdpdepay_suite (void)
|
gdpdepay_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("gdpdepay");
|
Suite *s = suite_create ("gdpdepay");
|
||||||
|
|
|
@ -24,12 +24,10 @@
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
#include <gst/dataprotocol/dataprotocol.h>
|
#include <gst/dataprotocol/dataprotocol.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysrcpad, *myshsrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *myshsrcpad, *mysinkpad;
|
||||||
|
|
||||||
#define AUDIO_CAPS_TEMPLATE_STRING \
|
#define AUDIO_CAPS_TEMPLATE_STRING \
|
||||||
"audio/x-raw-int, " \
|
"audio/x-raw-int, " \
|
||||||
|
@ -62,8 +60,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
);
|
);
|
||||||
|
|
||||||
/* takes over reference for outcaps */
|
/* takes over reference for outcaps */
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_gdppay ()
|
setup_gdppay (void)
|
||||||
{
|
{
|
||||||
GstElement *gdppay;
|
GstElement *gdppay;
|
||||||
|
|
||||||
|
@ -77,7 +75,7 @@ setup_gdppay ()
|
||||||
return gdppay;
|
return gdppay;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_gdppay (GstElement * gdppay)
|
cleanup_gdppay (GstElement * gdppay)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_gdppay");
|
GST_DEBUG ("cleanup_gdppay");
|
||||||
|
@ -204,7 +202,7 @@ GST_START_TEST (test_audio)
|
||||||
g_list_free (buffers);
|
g_list_free (buffers);
|
||||||
buffers = NULL;
|
buffers = NULL;
|
||||||
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
||||||
gst_object_unref (gdppay);
|
cleanup_gdppay (gdppay);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -216,8 +214,8 @@ static GstStaticPadTemplate shsrctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_gdppay_streamheader ()
|
setup_gdppay_streamheader (void)
|
||||||
{
|
{
|
||||||
GstElement *gdppay;
|
GstElement *gdppay;
|
||||||
|
|
||||||
|
@ -378,7 +376,7 @@ GST_START_TEST (test_streamheader)
|
||||||
g_list_free (buffers);
|
g_list_free (buffers);
|
||||||
buffers = NULL;
|
buffers = NULL;
|
||||||
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
||||||
gst_object_unref (gdppay);
|
cleanup_gdppay (gdppay);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -411,7 +409,7 @@ GST_START_TEST (test_first_no_caps)
|
||||||
g_list_free (buffers);
|
g_list_free (buffers);
|
||||||
buffers = NULL;
|
buffers = NULL;
|
||||||
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
||||||
gst_object_unref (gdppay);
|
cleanup_gdppay (gdppay);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -434,6 +432,7 @@ GST_START_TEST (test_first_no_new_segment)
|
||||||
inbuffer = gst_buffer_new_and_alloc (4);
|
inbuffer = gst_buffer_new_and_alloc (4);
|
||||||
caps = gst_caps_from_string (AUDIO_CAPS_STRING);
|
caps = gst_caps_from_string (AUDIO_CAPS_STRING);
|
||||||
gst_buffer_set_caps (inbuffer, caps);
|
gst_buffer_set_caps (inbuffer, caps);
|
||||||
|
gst_caps_unref (caps);
|
||||||
|
|
||||||
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
ASSERT_BUFFER_REFCOUNT (inbuffer, "inbuffer", 1);
|
||||||
|
|
||||||
|
@ -452,7 +451,7 @@ GST_START_TEST (test_first_no_new_segment)
|
||||||
g_list_free (buffers);
|
g_list_free (buffers);
|
||||||
buffers = NULL;
|
buffers = NULL;
|
||||||
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
||||||
gst_object_unref (gdppay);
|
cleanup_gdppay (gdppay);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
@ -542,13 +541,13 @@ GST_START_TEST (test_crc)
|
||||||
g_list_free (buffers);
|
g_list_free (buffers);
|
||||||
buffers = NULL;
|
buffers = NULL;
|
||||||
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
ASSERT_OBJECT_REFCOUNT (gdppay, "gdppay", 1);
|
||||||
gst_object_unref (gdppay);
|
cleanup_gdppay (gdppay);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
gdppay_suite (void)
|
gdppay_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("gdppay");
|
Suite *s = suite_create ("gdppay");
|
||||||
|
|
|
@ -34,9 +34,7 @@
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
static GstPad *mysrcpad;
|
||||||
|
|
||||||
GstPad *mysrcpad;
|
|
||||||
|
|
||||||
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -44,7 +42,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS_ANY);
|
GST_STATIC_CAPS_ANY);
|
||||||
|
|
||||||
static GstElement *
|
static GstElement *
|
||||||
setup_gnomevfssink ()
|
setup_gnomevfssink (void)
|
||||||
{
|
{
|
||||||
GstElement *gnomevfssink;
|
GstElement *gnomevfssink;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
GstPad *mysrcpad;
|
static GstPad *mysrcpad;
|
||||||
|
|
||||||
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -34,8 +34,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS ("application/x-gst-check")
|
GST_STATIC_CAPS ("application/x-gst-check")
|
||||||
);
|
);
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_multifdsink ()
|
setup_multifdsink (void)
|
||||||
{
|
{
|
||||||
GstElement *multifdsink;
|
GstElement *multifdsink;
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ setup_multifdsink ()
|
||||||
return multifdsink;
|
return multifdsink;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_multifdsink (GstElement * multifdsink)
|
cleanup_multifdsink (GstElement * multifdsink)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_multifdsink");
|
GST_DEBUG ("cleanup_multifdsink");
|
||||||
|
@ -844,7 +844,7 @@ GST_END_TEST;
|
||||||
* an old client still needs to read from before the new streamheaders
|
* an old client still needs to read from before the new streamheaders
|
||||||
* a new client gets the new streamheaders
|
* a new client gets the new streamheaders
|
||||||
*/
|
*/
|
||||||
Suite *
|
static Suite *
|
||||||
multifdsink_suite (void)
|
multifdsink_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("multifdsink");
|
Suite *s = suite_create ("multifdsink");
|
||||||
|
|
|
@ -35,8 +35,6 @@
|
||||||
#define WIDTH 240
|
#define WIDTH 240
|
||||||
#define HEIGHT 120
|
#define HEIGHT 120
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
|
|
|
@ -24,12 +24,10 @@
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
|
|
||||||
|
|
||||||
#define VIDEO_CAPS_TEMPLATE_STRING \
|
#define VIDEO_CAPS_TEMPLATE_STRING \
|
||||||
|
@ -66,7 +64,7 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS (VIDEO_CAPS_TEMPLATE_STRING)
|
GST_STATIC_CAPS (VIDEO_CAPS_TEMPLATE_STRING)
|
||||||
);
|
);
|
||||||
|
|
||||||
void
|
static void
|
||||||
assert_videorate_stats (GstElement * videorate, gchar * reason,
|
assert_videorate_stats (GstElement * videorate, gchar * reason,
|
||||||
guint64 xin, guint64 xout, guint64 xdropped, guint64 xduplicated)
|
guint64 xin, guint64 xout, guint64 xdropped, guint64 xduplicated)
|
||||||
{
|
{
|
||||||
|
@ -90,8 +88,8 @@ G_STMT_START { \
|
||||||
_assert_equals_uint64 (duplicated, xduplicated);
|
_assert_equals_uint64 (duplicated, xduplicated);
|
||||||
}
|
}
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_videorate ()
|
setup_videorate (void)
|
||||||
{
|
{
|
||||||
GstElement *videorate;
|
GstElement *videorate;
|
||||||
|
|
||||||
|
@ -105,7 +103,7 @@ setup_videorate ()
|
||||||
return videorate;
|
return videorate;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_videorate (GstElement * videorate)
|
cleanup_videorate (GstElement * videorate)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_videorate");
|
GST_DEBUG ("cleanup_videorate");
|
||||||
|
|
|
@ -33,12 +33,10 @@
|
||||||
|
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysinkpad;
|
static GstPad *mysinkpad;
|
||||||
|
|
||||||
|
|
||||||
#define CAPS_TEMPLATE_STRING \
|
#define CAPS_TEMPLATE_STRING \
|
||||||
|
@ -54,8 +52,8 @@ static GstStaticPadTemplate sinktemplate = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||||
GST_STATIC_CAPS (CAPS_TEMPLATE_STRING)
|
GST_STATIC_CAPS (CAPS_TEMPLATE_STRING)
|
||||||
);
|
);
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_videotestsrc ()
|
setup_videotestsrc (void)
|
||||||
{
|
{
|
||||||
GstElement *videotestsrc;
|
GstElement *videotestsrc;
|
||||||
|
|
||||||
|
@ -67,7 +65,7 @@ setup_videotestsrc ()
|
||||||
return videotestsrc;
|
return videotestsrc;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_videotestsrc (GstElement * videotestsrc)
|
cleanup_videotestsrc (GstElement * videotestsrc)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_videotestsrc");
|
GST_DEBUG ("cleanup_videotestsrc");
|
||||||
|
|
|
@ -26,12 +26,10 @@
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
#include <gst/controller/gstcontroller.h>
|
#include <gst/controller/gstcontroller.h>
|
||||||
|
|
||||||
gboolean have_eos = FALSE;
|
|
||||||
|
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
|
|
||||||
|
|
||||||
#define VOLUME_CAPS_TEMPLATE_STRING \
|
#define VOLUME_CAPS_TEMPLATE_STRING \
|
||||||
|
@ -119,8 +117,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_STATIC_CAPS (VOLUME_CAPS_TEMPLATE_STRING)
|
GST_STATIC_CAPS (VOLUME_CAPS_TEMPLATE_STRING)
|
||||||
);
|
);
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_volume ()
|
setup_volume (void)
|
||||||
{
|
{
|
||||||
GstElement *volume;
|
GstElement *volume;
|
||||||
|
|
||||||
|
@ -134,7 +132,7 @@ setup_volume ()
|
||||||
return volume;
|
return volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_volume (GstElement * volume)
|
cleanup_volume (GstElement * volume)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_volume");
|
GST_DEBUG ("cleanup_volume");
|
||||||
|
|
|
@ -30,10 +30,10 @@
|
||||||
/* For ease of programming we use globals to keep refs for our floating
|
/* For ease of programming we use globals to keep refs for our floating
|
||||||
* src and sink pads we create; otherwise we always have to do get_pad,
|
* src and sink pads we create; otherwise we always have to do get_pad,
|
||||||
* get_peer, and then remove references in every test function */
|
* get_peer, and then remove references in every test function */
|
||||||
GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
|
|
||||||
/* a valid first header packet */
|
/* a valid first header packet */
|
||||||
guchar identification_header[30] = {
|
static guchar identification_header[30] = {
|
||||||
1, /* packet_type */
|
1, /* packet_type */
|
||||||
'v', 'o', 'r', 'b', 'i', 's',
|
'v', 'o', 'r', 'b', 'i', 's',
|
||||||
0, 0, 0, 0, /* vorbis_version */
|
0, 0, 0, 0, /* vorbis_version */
|
||||||
|
@ -46,7 +46,7 @@ guchar identification_header[30] = {
|
||||||
0x01, /* framing_flag */
|
0x01, /* framing_flag */
|
||||||
};
|
};
|
||||||
|
|
||||||
guchar comment_header[] = {
|
static guchar comment_header[] = {
|
||||||
3, /* packet_type */
|
3, /* packet_type */
|
||||||
'v', 'o', 'r', 'b', 'i', 's',
|
'v', 'o', 'r', 'b', 'i', 's',
|
||||||
2, 0, 0, 0, /* vendor_length */
|
2, 0, 0, 0, /* vendor_length */
|
||||||
|
@ -66,8 +66,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS_ANY);
|
GST_STATIC_CAPS_ANY);
|
||||||
|
|
||||||
GstElement *
|
static GstElement *
|
||||||
setup_vorbisdec ()
|
setup_vorbisdec (void)
|
||||||
{
|
{
|
||||||
GstElement *vorbisdec;
|
GstElement *vorbisdec;
|
||||||
|
|
||||||
|
@ -81,7 +81,7 @@ setup_vorbisdec ()
|
||||||
return vorbisdec;
|
return vorbisdec;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
cleanup_vorbisdec (GstElement * vorbisdec)
|
cleanup_vorbisdec (GstElement * vorbisdec)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("cleanup_vorbisdec");
|
GST_DEBUG ("cleanup_vorbisdec");
|
||||||
|
@ -233,10 +233,10 @@ GST_START_TEST (test_identification_header)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
vorbis_comment vc;
|
static vorbis_comment vc;
|
||||||
vorbis_dsp_state vd;
|
static vorbis_dsp_state vd;
|
||||||
vorbis_info vi;
|
static vorbis_info vi;
|
||||||
vorbis_block vb;
|
static vorbis_block vb;
|
||||||
|
|
||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
_create_codebook_header_buffer (void)
|
_create_codebook_header_buffer (void)
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
#include <gst/check/gstcheck.h>
|
#include <gst/check/gstcheck.h>
|
||||||
|
|
||||||
/* a valid first header packet */
|
/* a valid first header packet */
|
||||||
guchar identification_header[30] = {
|
static guchar identification_header[30] = {
|
||||||
1, /* packet_type */
|
1, /* packet_type */
|
||||||
'v', 'o', 'r', 'b', 'i', 's',
|
'v', 'o', 'r', 'b', 'i', 's',
|
||||||
0, 0, 0, 0, /* vorbis_version */
|
0, 0, 0, 0, /* vorbis_version */
|
||||||
|
@ -43,7 +43,7 @@ guchar identification_header[30] = {
|
||||||
0x01 /* framing_flag */
|
0x01 /* framing_flag */
|
||||||
};
|
};
|
||||||
|
|
||||||
guchar artist_comment_header[] = {
|
static guchar artist_comment_header[] = {
|
||||||
3, /* packet_type */
|
3, /* packet_type */
|
||||||
'v', 'o', 'r', 'b', 'i', 's',
|
'v', 'o', 'r', 'b', 'i', 's',
|
||||||
2, 0, 0, 0, /* vendor_length */
|
2, 0, 0, 0, /* vendor_length */
|
||||||
|
@ -54,7 +54,7 @@ guchar artist_comment_header[] = {
|
||||||
0x01, /* framing bit */
|
0x01, /* framing bit */
|
||||||
};
|
};
|
||||||
|
|
||||||
guchar title_comment_header[] = {
|
static guchar title_comment_header[] = {
|
||||||
3, /* packet_type */
|
3, /* packet_type */
|
||||||
'v', 'o', 'r', 'b', 'i', 's',
|
'v', 'o', 'r', 'b', 'i', 's',
|
||||||
2, 0, 0, 0, /* vendor_length */
|
2, 0, 0, 0, /* vendor_length */
|
||||||
|
@ -65,7 +65,7 @@ guchar title_comment_header[] = {
|
||||||
0x01, /* framing bit */
|
0x01, /* framing bit */
|
||||||
};
|
};
|
||||||
|
|
||||||
guchar empty_comment_header[] = {
|
static guchar empty_comment_header[] = {
|
||||||
3, /* packet_type */
|
3, /* packet_type */
|
||||||
'v', 'o', 'r', 'b', 'i', 's',
|
'v', 'o', 'r', 'b', 'i', 's',
|
||||||
2, 0, 0, 0, /* vendor_length */
|
2, 0, 0, 0, /* vendor_length */
|
||||||
|
@ -84,8 +84,8 @@ static GstStaticPadTemplate srctemplate = GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_ALWAYS,
|
GST_PAD_ALWAYS,
|
||||||
GST_STATIC_CAPS_ANY);
|
GST_STATIC_CAPS_ANY);
|
||||||
|
|
||||||
GstPad *mysrcpad, *mysinkpad;
|
static GstPad *mysrcpad, *mysinkpad;
|
||||||
GAsyncQueue *pending_buffers;
|
static GAsyncQueue *pending_buffers;
|
||||||
static gulong id;
|
static gulong id;
|
||||||
|
|
||||||
|
|
||||||
|
@ -160,10 +160,10 @@ stop_pipeline (GstElement * element)
|
||||||
pending_buffers = NULL;
|
pending_buffers = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
vorbis_comment vc;
|
static vorbis_comment vc;
|
||||||
vorbis_dsp_state vd;
|
static vorbis_dsp_state vd;
|
||||||
vorbis_info vi;
|
static vorbis_info vi;
|
||||||
vorbis_block vb;
|
static vorbis_block vb;
|
||||||
|
|
||||||
static GstBuffer *
|
static GstBuffer *
|
||||||
_create_codebook_header_buffer (void)
|
_create_codebook_header_buffer (void)
|
||||||
|
|
|
@ -42,7 +42,7 @@ GST_START_TEST (test_add)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
volume_suite (void)
|
volume_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("clocks");
|
Suite *s = suite_create ("clocks");
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
static GList *elements = NULL;
|
static GList *elements = NULL;
|
||||||
|
|
||||||
static void
|
static void
|
||||||
setup ()
|
setup (void)
|
||||||
{
|
{
|
||||||
GList *features, *f;
|
GList *features, *f;
|
||||||
GList *plugins, *p;
|
GList *plugins, *p;
|
||||||
|
@ -88,7 +88,7 @@ setup ()
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
teardown ()
|
teardown (void)
|
||||||
{
|
{
|
||||||
GList *e;
|
GList *e;
|
||||||
|
|
||||||
|
@ -204,7 +204,7 @@ GST_START_TEST (test_state_changes_down_seq)
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
states_suite (void)
|
states_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("states");
|
Suite *s = suite_create ("states");
|
||||||
|
|
|
@ -154,7 +154,7 @@ struct _test_disc
|
||||||
|
|
||||||
/* FIXME: now we just need to find out how to treat
|
/* FIXME: now we just need to find out how to treat
|
||||||
* data tracks for the cddb id calculation .... */
|
* data tracks for the cddb id calculation .... */
|
||||||
struct _test_disc test_discs[NUM_TEST_DISCS] = {
|
static struct _test_disc test_discs[NUM_TEST_DISCS] = {
|
||||||
{nh_cd2_tracks, G_N_ELEMENTS (nh_cd2_tracks), 0xae11900e,
|
{nh_cd2_tracks, G_N_ELEMENTS (nh_cd2_tracks), 0xae11900e,
|
||||||
NULL},
|
NULL},
|
||||||
{mb_sample_tracks, G_N_ELEMENTS (mb_sample_tracks), 0x00000000,
|
{mb_sample_tracks, G_N_ELEMENTS (mb_sample_tracks), 0x00000000,
|
||||||
|
|
|
@ -135,7 +135,7 @@ GST_START_TEST (test_memory_stream)
|
||||||
|
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
gio_testsuite (void)
|
gio_testsuite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("gio");
|
Suite *s = suite_create ("gio");
|
||||||
|
|
|
@ -46,8 +46,8 @@ typedef struct
|
||||||
ChainCodec codec;
|
ChainCodec codec;
|
||||||
} ChainState;
|
} ChainState;
|
||||||
|
|
||||||
ogg_sync_state oggsync;
|
static ogg_sync_state oggsync;
|
||||||
GHashTable *eos_chain_states;
|
static GHashTable *eos_chain_states;
|
||||||
static gulong probe_id;
|
static gulong probe_id;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -129,7 +129,8 @@ GST_START_TEST (test_element_negotiation)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST
|
GST_END_TEST;
|
||||||
|
|
||||||
GST_START_TEST (test_basetransform_based)
|
GST_START_TEST (test_basetransform_based)
|
||||||
{
|
{
|
||||||
/* Each of these tests is to check whether various basetransform based
|
/* Each of these tests is to check whether various basetransform based
|
||||||
|
@ -201,9 +202,11 @@ GST_START_TEST (test_basetransform_based)
|
||||||
GST_MESSAGE_UNKNOWN);
|
GST_MESSAGE_UNKNOWN);
|
||||||
}
|
}
|
||||||
|
|
||||||
GST_END_TEST
|
GST_END_TEST;
|
||||||
|
|
||||||
#endif /* #ifndef GST_DISABLE_PARSE */
|
#endif /* #ifndef GST_DISABLE_PARSE */
|
||||||
Suite * simple_launch_lines_suite (void)
|
static Suite *
|
||||||
|
simple_launch_lines_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("Pipelines");
|
Suite *s = suite_create ("Pipelines");
|
||||||
TCase *tc_chain = tcase_create ("linear");
|
TCase *tc_chain = tcase_create ("linear");
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
|
|
||||||
static int n_tags = 0;
|
static int n_tags = 0;
|
||||||
|
|
||||||
gboolean
|
static gboolean
|
||||||
tag_event_probe_cb (GstPad * pad, GstEvent * event, GMainLoop * loop)
|
tag_event_probe_cb (GstPad * pad, GstEvent * event, GMainLoop * loop)
|
||||||
{
|
{
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
switch (GST_EVENT_TYPE (event)) {
|
||||||
|
@ -113,7 +113,7 @@ GST_END_TEST;
|
||||||
|
|
||||||
static int n_in_caps = 0;
|
static int n_in_caps = 0;
|
||||||
|
|
||||||
gboolean
|
static gboolean
|
||||||
buffer_probe_cb (GstPad * pad, GstBuffer * buffer)
|
buffer_probe_cb (GstPad * pad, GstBuffer * buffer)
|
||||||
{
|
{
|
||||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_IN_CAPS)) {
|
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_IN_CAPS)) {
|
||||||
|
@ -208,7 +208,7 @@ GST_END_TEST;
|
||||||
|
|
||||||
#endif /* #ifndef GST_DISABLE_PARSE */
|
#endif /* #ifndef GST_DISABLE_PARSE */
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
streamheader_suite (void)
|
streamheader_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("streamheader");
|
Suite *s = suite_create ("streamheader");
|
||||||
|
|
|
@ -426,7 +426,7 @@ GST_END_TEST;
|
||||||
|
|
||||||
#endif /* #ifndef GST_DISABLE_PARSE */
|
#endif /* #ifndef GST_DISABLE_PARSE */
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
theoraenc_suite (void)
|
theoraenc_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("theoraenc");
|
Suite *s = suite_create ("theoraenc");
|
||||||
|
|
|
@ -25,10 +25,10 @@
|
||||||
|
|
||||||
#ifndef GST_DISABLE_PARSE
|
#ifndef GST_DISABLE_PARSE
|
||||||
|
|
||||||
GMainLoop *loop;
|
static GMainLoop *loop;
|
||||||
gint messages = 0;
|
static gint messages = 0;
|
||||||
|
|
||||||
void
|
static void
|
||||||
element_message_cb (GstBus * bus, GstMessage * message, gpointer user_data)
|
element_message_cb (GstBus * bus, GstMessage * message, gpointer user_data)
|
||||||
{
|
{
|
||||||
gchar *s;
|
gchar *s;
|
||||||
|
@ -40,7 +40,7 @@ element_message_cb (GstBus * bus, GstMessage * message, gpointer user_data)
|
||||||
messages++;
|
messages++;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
eos_message_cb (GstBus * bus, GstMessage * message, gpointer user_data)
|
eos_message_cb (GstBus * bus, GstMessage * message, gpointer user_data)
|
||||||
{
|
{
|
||||||
GST_DEBUG ("Received eos");
|
GST_DEBUG ("Received eos");
|
||||||
|
@ -93,7 +93,7 @@ GST_START_TEST (test_timestamps)
|
||||||
GST_END_TEST;
|
GST_END_TEST;
|
||||||
#endif /* #ifndef GST_DISABLE_PARSE */
|
#endif /* #ifndef GST_DISABLE_PARSE */
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
vorbisenc_suite (void)
|
vorbisenc_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("vorbisenc");
|
Suite *s = suite_create ("vorbisenc");
|
||||||
|
|
|
@ -376,7 +376,7 @@ GST_END_TEST;
|
||||||
|
|
||||||
#endif /* #ifndef GST_DISABLE_PARSE */
|
#endif /* #ifndef GST_DISABLE_PARSE */
|
||||||
|
|
||||||
Suite *
|
static Suite *
|
||||||
vorbisenc_suite (void)
|
vorbisenc_suite (void)
|
||||||
{
|
{
|
||||||
Suite *s = suite_create ("vorbisenc");
|
Suite *s = suite_create ("vorbisenc");
|
||||||
|
|
|
@ -34,12 +34,12 @@ static guint schanged_id = 0;
|
||||||
#define SEGMENT_LEN 100
|
#define SEGMENT_LEN 100
|
||||||
#define UPDATE_INTERVAL 500
|
#define UPDATE_INTERVAL 500
|
||||||
|
|
||||||
gdouble prev_range = -1.0;
|
static gdouble prev_range = -1.0;
|
||||||
GstClockTime prev_time = GST_CLOCK_TIME_NONE;
|
static GstClockTime prev_time = GST_CLOCK_TIME_NONE;
|
||||||
gdouble cur_range;
|
static gdouble cur_range;
|
||||||
GstClockTime cur_time;
|
static GstClockTime cur_time;
|
||||||
GstClockTimeDiff diff;
|
static GstClockTimeDiff diff;
|
||||||
gdouble cur_speed = 1.0;
|
static gdouble cur_speed = 1.0;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
|
|
|
@ -994,7 +994,7 @@ query_rates (void)
|
||||||
}
|
}
|
||||||
|
|
||||||
G_GNUC_UNUSED static void
|
G_GNUC_UNUSED static void
|
||||||
query_positions_elems ()
|
query_positions_elems (void)
|
||||||
{
|
{
|
||||||
GList *walk = seekable_elements;
|
GList *walk = seekable_elements;
|
||||||
|
|
||||||
|
@ -1026,7 +1026,7 @@ query_positions_elems ()
|
||||||
}
|
}
|
||||||
|
|
||||||
G_GNUC_UNUSED static void
|
G_GNUC_UNUSED static void
|
||||||
query_positions_pads ()
|
query_positions_pads (void)
|
||||||
{
|
{
|
||||||
GList *walk = seekable_pads;
|
GList *walk = seekable_pads;
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ static gint width = 320, height = 240, x = 0, y = 0;
|
||||||
static gint disp_width, disp_height;
|
static gint disp_width, disp_height;
|
||||||
|
|
||||||
static inline long
|
static inline long
|
||||||
myclock ()
|
myclock (void)
|
||||||
{
|
{
|
||||||
struct timeval tv;
|
struct timeval tv;
|
||||||
|
|
||||||
|
|
|
@ -87,6 +87,7 @@ EXPORTS
|
||||||
gst_rtp_buffer_pad_to
|
gst_rtp_buffer_pad_to
|
||||||
gst_rtp_buffer_set_csrc
|
gst_rtp_buffer_set_csrc
|
||||||
gst_rtp_buffer_set_extension
|
gst_rtp_buffer_set_extension
|
||||||
|
gst_rtp_buffer_set_extension_data
|
||||||
gst_rtp_buffer_set_marker
|
gst_rtp_buffer_set_marker
|
||||||
gst_rtp_buffer_set_packet_len
|
gst_rtp_buffer_set_packet_len
|
||||||
gst_rtp_buffer_set_padding
|
gst_rtp_buffer_set_padding
|
||||||
|
|
Loading…
Reference in a new issue