AG_GST_SET_PLUGINDIR
dnl define an ERROR_CFLAGS Makefile variable
-AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef])
+AG_GST_SET_ERROR_CFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings])
dnl define an ERROR_CXXFLAGS Makefile variable
-AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [-Wmissing-declarations -Wredundant-decls -Wundef])
+AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [-Wmissing-declarations -Wredundant-decls -Wundef -Wwrite-strings])
dnl define correct level for debugging messages
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
gst_hal_get_alsa_element (LibHalContext * ctx, const gchar * udi,
GstHalDeviceType device_type)
{
- char *type, *element = NULL, *string = NULL;
+ char *type, *string = NULL;
+ const char *element = NULL;
DBusError error;
dbus_error_init (&error);
gst_hal_get_oss_element (LibHalContext * ctx, const gchar * udi,
GstHalDeviceType device_type)
{
- char *type, *element = NULL, *string = NULL;
+ char *type, *string = NULL;
+ const char *element = NULL;
DBusError error;
dbus_error_init (&error);
static gchar **
gst_dv1394src_uri_get_protocols (void)
{
- static gchar *protocols[] = { "dv", NULL };
+ static gchar *protocols[] = { (char *) "dv", NULL };
return protocols;
}
static gchar **
gst_hdv1394src_uri_get_protocols (void)
{
- static gchar *protocols[] = { "hdv", NULL };
+ static gchar *protocols[] = { (char *) "hdv", NULL };
return protocols;
}
static gchar **
gst_soup_http_src_uri_get_protocols (void)
{
- static gchar *protocols[] = { "http", "https", NULL };
- return protocols;
+ static const gchar *protocols[] = { "http", "https", NULL };
+ return (gchar **) protocols;
}
static const gchar *
g_memmove (header, buf, sizeof (WavpackHeader));
#ifndef WAVPACK_OLD_API
- WavpackLittleEndianToNative (header, WavpackHeaderFormat);
+ WavpackLittleEndianToNative (header, (char *) WavpackHeaderFormat);
#else
little_endian_to_native (header, WavpackHeaderFormat);
#endif
const struct
{
guint32 fcc;
- gchar *tag;
+ const gchar *tag;
} rifftags[] = {
{
GST_RIFF_INFO_IARL, GST_TAG_LOCATION}, {
static gchar **
gst_push_file_src_uri_get_protocols (void)
{
- static gchar *protocols[] = { "pushfile", NULL };
+ static gchar *protocols[] = { (char *) "pushfile", NULL };
return protocols;
}
guint32 rate, guint32 channels, guint32 width)
{
GstCaps *caps = NULL;
- gchar *codec_name = NULL;
+ const gchar *codec_name = NULL;
gboolean ret = FALSE;
switch (codec_tag) {
{
gboolean ret = FALSE;
GstCaps *caps = NULL;
- gchar *codec_name = NULL;
+ const gchar *codec_name = NULL;
/* Generate caps for that pad */
switch (codec_tag) {
}
PluginParam
-goom_secure_param ()
+goom_secure_param (void)
{
PluginParam p;
}
PluginParam
-goom_secure_f_param (char *name)
+goom_secure_f_param (const char *name)
{
PluginParam p = secure_param ();
}
PluginParam
-goom_secure_f_feedback (char *name)
+goom_secure_f_feedback (const char *name)
{
PluginParam p = secure_f_param (name);
}
PluginParam
-goom_secure_s_param (char *name)
+goom_secure_s_param (const char *name)
{
PluginParam p = secure_param ();
}
PluginParam
-goom_secure_b_param (char *name, int value)
+goom_secure_b_param (const char *name, int value)
{
PluginParam p = secure_param ();
}
PluginParam
-goom_secure_i_param (char *name)
+goom_secure_i_param (const char *name)
{
PluginParam p = secure_param ();
}
PluginParam
-goom_secure_i_feedback (char *name)
+goom_secure_i_feedback (const char *name)
{
PluginParam p = secure_i_param (name);
typedef struct _PARAM {
- char *name;
- char *desc;
+ const char *name;
+ const char *desc;
char rw;
ParamType type;
union {
PluginParam goom_secure_param(void);
-PluginParam goom_secure_f_param(char *name);
-PluginParam goom_secure_i_param(char *name);
-PluginParam goom_secure_b_param(char *name, int value);
-PluginParam goom_secure_s_param(char *name);
+PluginParam goom_secure_f_param(const char *name);
+PluginParam goom_secure_i_param(const char *name);
+PluginParam goom_secure_b_param(const char *name, int value);
+PluginParam goom_secure_s_param(const char *name);
-PluginParam goom_secure_f_feedback(char *name);
-PluginParam goom_secure_i_feedback(char *name);
+PluginParam goom_secure_f_feedback(const char *name);
+PluginParam goom_secure_i_feedback(const char *name);
void goom_set_str_param_value(PluginParam *p, const char *str);
void goom_set_list_param_value(PluginParam *p, const char *str);
typedef struct _PARAMETERS {
- char *name;
- char *desc;
+ const char *name;
+ const char *desc;
int nbParams;
PluginParam **params;
} PluginParameters;
const struct ID3v2FrameIDConvert
{
- gchar *orig;
- gchar *new;
+ const gchar *orig;
+ const gchar *new;
} frame_id_conversions[] = {
/* 2.3.x frames */
{
GstPad *otherpad;
GstCaps *othercaps, *result;
const GstCaps *templ;
- gchar *name;
+ const gchar *name;
gint i;
alawdec = GST_ALAW_DEC (GST_PAD_PARENT (pad));
GstPad *otherpad;
GstCaps *othercaps, *result;
const GstCaps *templ;
- gchar *name;
+ const gchar *name;
gint i;
alawenc = GST_ALAW_ENC (GST_PAD_PARENT (pad));
GstPad *otherpad;
GstCaps *othercaps, *result;
const GstCaps *templ;
- gchar *name;
+ const gchar *name;
gint i;
mulawdec = GST_MULAWDEC (GST_PAD_PARENT (pad));
GstPad *otherpad;
GstCaps *othercaps, *result;
const GstCaps *templ;
- gchar *name;
+ const gchar *name;
gint i;
mulawenc = GST_MULAWENC (GST_PAD_PARENT (pad));
* Write EBML header.
*/
void
-gst_ebml_write_header (GstEbmlWrite * ebml, gchar * doctype, guint version)
+gst_ebml_write_header (GstEbmlWrite * ebml, const gchar * doctype,
+ guint version)
{
guint64 pos;
guchar *binary,
guint64 length);
void gst_ebml_write_header (GstEbmlWrite *ebml,
- gchar *doctype,
+ const gchar *doctype,
guint version);
/*
/* FIXME: check if there are more useful mappings */
struct
{
- gchar *matroska_tagname;
- gchar *gstreamer_tagname;
+ const gchar *matroska_tagname;
+ const gchar *gstreamer_tagname;
}
tag_conv[] = {
{
}
}
- utf8 = g_convert_with_fallback (data, size, "UTF-8", encoding, "*",
+ utf8 = g_convert_with_fallback (data, size, "UTF-8", encoding, (char *) "*",
NULL, NULL, &err);
if (err) {
/* invalid input encoding, fall back to ISO-8859-15 (always succeeds) */
encoding = "ISO-8859-15";
- utf8 = g_convert_with_fallback (data, size, "UTF-8", encoding, "*",
+ utf8 = g_convert_with_fallback (data, size, "UTF-8", encoding, (char *) "*",
NULL, NULL, NULL);
}
guint needed = 0;
guint32 id;
guint64 length;
- gchar *name;
+ const gchar *name;
gst_adapter_push (demux->adapter, buffer);
buffer = NULL;
return TRUE;
}
-static gchar *
+static const gchar *
aac_codec_data_to_codec_id (const GstBuffer * buf)
{
- gchar *result;
+ const gchar *result;
gint profile;
/* default to MAIN */
/* TODO: more sensible tag mappings */
struct
{
- gchar *matroska_tagname;
- gchar *gstreamer_tagname;
+ const gchar *matroska_tagname;
+ const gchar *gstreamer_tagname;
}
tag_conv[] = {
{
gint len;
guint8 *data;
GstBuffer *buf;
- gchar *media_type, *style;
+ gchar *media_type;
+ const gchar *style;
GstCaps *caps;
guint i;
guint8 ndata[4];
guint8 *data_ptr = NULL;
int data_len = 0;
guint8 object_type_id = 0;
- char *codec_name = NULL;
+ const char *codec_name = NULL;
GstCaps *caps = NULL;
GST_MEMDUMP_OBJECT (qtdemux, "esds", ptr, len);
static gboolean
gst_dv_pay_negotiate (GstRTPDVPay * rtpdvpay, guint8 * data, guint size)
{
- gchar *encode, *media;
+ const gchar *encode, *media;
gboolean audio_bundled, res;
if ((data[3] & 0x80) == 0) { /* DSF flag */
GstRtpMP4GPay *rtpmp4gpay;
GstStructure *structure;
const GValue *codec_data;
- gchar *media_type = NULL;
+ const gchar *media_type = NULL;
gboolean res;
rtpmp4gpay = GST_RTP_MP4G_PAY (payload);
pairs = g_strsplit (p, ";", 0);
for (i = 0; pairs[i]; i++) {
gchar *valpos;
- gchar *val, *key;
+ const gchar *val, *key;
/* the key may not have a '=', the value can have other '='s */
valpos = strstr (pairs[i], "=");
static gchar **
gst_rtspsrc_uri_get_protocols (void)
{
- static gchar *protocols[] = { "rtsp", "rtspu", "rtspt", "rtsph", NULL };
+ static const gchar *protocols[] = { "rtsp", "rtspu", "rtspt", "rtsph", NULL };
- return protocols;
+ return (gchar **) protocols;
}
static const gchar *
static gchar **
gst_udpsink_uri_get_protocols (void)
{
- static gchar *protocols[] = { "udp", NULL };
+ static gchar *protocols[] = { (char *) "udp", NULL };
return protocols;
}
static gchar **
gst_udpsrc_uri_get_protocols (void)
{
- static gchar *protocols[] = { "udp", NULL };
+ static gchar *protocols[] = { (char *) "udp", NULL };
return protocols;
}
gst_video_balance_init (GTypeInstance * instance, gpointer g_class)
{
GstVideoBalance *videobalance = GST_VIDEO_BALANCE (instance);
- char *channels[4] = { "HUE", "SATURATION",
+ const char *channels[4] = { "HUE", "SATURATION",
"BRIGHTNESS", "CONTRAST"
};
gint i;
fill_labels (void)
{
gint i, pos;
- gchar *origs[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS;
+ const gchar *origs[SOUND_MIXER_NRDEVICES] = SOUND_DEVICE_LABELS;
const struct
{
const gchar *given;
GstV4l2Object *
gst_v4l2_object_new (GstElement * element,
enum v4l2_buf_type type,
- char *default_device,
+ const char *default_device,
GstV4l2GetInOutFunction get_in_out_func,
GstV4l2SetInOutFunction set_in_out_func,
GstV4l2UpdateFpsFunction update_fps_func)
/* create/destroy */
GstV4l2Object * gst_v4l2_object_new (GstElement * element,
- enum v4l2_buf_type type,
- char *default_device,
+ enum v4l2_buf_type type,
+ const char *default_device,
GstV4l2GetInOutFunction get_in_out_func,
GstV4l2SetInOutFunction set_in_out_func,
GstV4l2UpdateFpsFunction update_fps_func);
static gchar **
gst_v4l2src_uri_get_protocols (void)
{
- static gchar *protocols[] = { "v4l2", NULL };
+ static gchar *protocols[] = { (char *) "v4l2", NULL };
return protocols;
}
/* setup and teardown needs some special handling for muxer */
static GstPad *
setup_src_pad (GstElement * element,
- GstStaticPadTemplate * template, GstCaps * caps, gchar * sinkname)
+ GstStaticPadTemplate * template, GstCaps * caps, const gchar * sinkname)
{
GstPad *srcpad, *sinkpad;
}
static void
-teardown_src_pad (GstElement * element, gchar * sinkname)
+teardown_src_pad (GstElement * element, const gchar * sinkname)
{
GstPad *srcpad, *sinkpad;
gchar *padname;
}
static GstElement *
-setup_avimux (GstStaticPadTemplate * srctemplate, gchar * sinkname)
+setup_avimux (GstStaticPadTemplate * srctemplate, const gchar * sinkname)
{
GstElement *avimux;
}
static void
-cleanup_avimux (GstElement * avimux, gchar * sinkname)
+cleanup_avimux (GstElement * avimux, const gchar * sinkname)
{
GST_DEBUG ("cleanup_avimux");
gst_element_set_state (avimux, GST_STATE_NULL);
}
static void
-check_avimux_pad (GstStaticPadTemplate * srctemplate, gchar * src_caps_string,
- gchar * chunk_id, gchar * sinkname)
+check_avimux_pad (GstStaticPadTemplate * srctemplate,
+ const gchar * src_caps_string, const gchar * chunk_id,
+ const gchar * sinkname)
{
GstElement *avimux;
GstBuffer *inbuffer, *outbuffer;
/* block wave of half amplitude has -5.94 dB for rms, peak and decay */
for (i = 0; i < 2; ++i) {
- gchar *fields[3] = { "rms", "peak", "decay" };
+ const gchar *fields[3] = { "rms", "peak", "decay" };
for (j = 0; j < 3; ++j) {
list = gst_structure_get_value (structure, fields[j]);
value = gst_value_list_get_value (list, i);
const GValue *list, *value;
GstClockTime endtime;
gdouble dB;
- gchar *fields[3] = { "rms", "peak", "decay" };
+ const gchar *fields[3] = { "rms", "peak", "decay" };
level = setup_level ();
g_object_set (level, "message", TRUE, "interval", GST_SECOND / 10, NULL);
/* Some payload.
*/
-static char *payload =
+static const char *payload =
"0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF"
"0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF"
"0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF0123456789ABSDEF"
GST_START_TEST (test_rtp_payloaders)
{
- gchar *s;
+ const gchar *s;
/* FIXME: going to playing would be nice, but thet leads to lot of failure */
GstState target_state = GST_STATE_PAUSED;
GST_END_TEST
GST_START_TEST (test_video_encoders_decoders)
{
- gchar *s;
+ const gchar *s;
GstState target_state = GST_STATE_PLAYING;
/* no is-live on the source because we actually want to preroll since