Commit 3bd4aa26 authored by Benjamin Otte's avatar Benjamin Otte
Browse files

Add -Wwrite-strings to configure

Fixes for the code included
parent 5e21fa5e
......@@ -308,10 +308,10 @@ dnl set location of plugin directory
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 -Wmissing-prototypes -Wredundant-decls -Wundef])
AG_GST_SET_ERROR_CXXFLAGS($GST_GIT, [-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef -Wwrite-strings])
dnl define correct level for debugging messages
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
......
......@@ -683,10 +683,11 @@ gst_visual_chain (GstPad * pad, GstBuffer * buffer)
visual_audio_samplepool_input_channel (visual->audio->samplepool,
lbuf,
rate, VISUAL_AUDIO_SAMPLE_FORMAT_S16, VISUAL_AUDIO_CHANNEL_LEFT);
visual_audio_samplepool_input_channel (visual->audio->samplepool,
rbuf,
rate, VISUAL_AUDIO_SAMPLE_FORMAT_S16, VISUAL_AUDIO_CHANNEL_RIGHT);
rate, VISUAL_AUDIO_SAMPLE_FORMAT_S16,
(char *) VISUAL_AUDIO_CHANNEL_LEFT);
visual_audio_samplepool_input_channel (visual->audio->samplepool, rbuf,
rate, VISUAL_AUDIO_SAMPLE_FORMAT_S16,
(char *) VISUAL_AUDIO_CHANNEL_RIGHT);
visual_object_unref (VISUAL_OBJECT (lbuf));
visual_object_unref (VISUAL_OBJECT (rbuf));
......
......@@ -433,7 +433,7 @@ theora_enc_get_supported_formats (void)
struct
{
th_pixel_fmt pixelformat;
char *fourcc;
const char *fourcc;
} formats[] = {
{
TH_PF_420, "I420"}, {
......
......@@ -1345,7 +1345,7 @@ gst_app_sink_uri_get_type (void)
static gchar **
gst_app_sink_uri_get_protocols (void)
{
static gchar *protocols[] = { "appsink", NULL };
static gchar *protocols[] = { (char *) "appsink", NULL };
return protocols;
}
......
......@@ -1639,7 +1639,7 @@ gst_app_src_uri_get_type (void)
static gchar **
gst_app_src_uri_get_protocols (void)
{
static gchar *protocols[] = { "appsrc", NULL };
static gchar *protocols[] = { (char *) "appsrc", NULL };
return protocols;
}
......
......@@ -922,7 +922,7 @@ gst_cdda_base_src_uri_get_type (void)
static gchar **
gst_cdda_base_src_uri_get_protocols (void)
{
static gchar *protocols[] = { "cdda", NULL };
static gchar *protocols[] = { (char *) "cdda", NULL };
return protocols;
}
......
......@@ -514,7 +514,7 @@ gst_mixer_volume_changed (GstMixer * mixer,
*/
void
gst_mixer_option_changed (GstMixer * mixer,
GstMixerOptions * opts, gchar * value)
GstMixerOptions * opts, const gchar * value)
{
GstStructure *s;
GstMessage *m;
......
......@@ -197,7 +197,7 @@ void gst_mixer_volume_changed (GstMixer *mixer,
gint *volumes);
void gst_mixer_option_changed (GstMixer *mixer,
GstMixerOptions *opts,
gchar *value);
const gchar *value);
void gst_mixer_mixer_changed (GstMixer *mixer);
......
......@@ -208,7 +208,7 @@ static struct rtsp_header rtsp_headers[] = {
};
#define DEF_STATUS(c, t) \
g_hash_table_insert (statuses, GUINT_TO_POINTER(c), t)
g_hash_table_insert (statuses, GUINT_TO_POINTER(c), (gpointer) t)
static GHashTable *
rtsp_init_status (void)
......
......@@ -329,10 +329,10 @@ gchar *
gst_rtsp_url_get_request_uri (const GstRTSPUrl * url)
{
gchar *uri;
gchar *pre_host;
gchar *post_host;
gchar *pre_query;
gchar *query;
const gchar *pre_host;
const gchar *post_host;
const gchar *pre_query;
const gchar *query;
g_return_val_if_fail (url != NULL, NULL);
......
......@@ -291,7 +291,7 @@ gst_tag_freeform_string_to_utf8 (const gchar * data, gint size,
/* check for and use byte-order-mark for UTF-16/32 cases */
if (size >= 2) {
gchar *c = NULL;
const gchar *c = NULL;
gint prefix, ssize;
if (size >= 4) {
......
......@@ -537,7 +537,7 @@ check_queue_event (GstPad * pad, GstEvent * event, gpointer user_data)
switch (GST_EVENT_TYPE (event)) {
case GST_EVENT_EOS:
GST_DEBUG ("EOS event, mark EOS");
g_object_set_data (G_OBJECT (queue), "eos", "1");
g_object_set_data (G_OBJECT (queue), "eos", GINT_TO_POINTER (1));
break;
case GST_EVENT_FLUSH_STOP:
GST_DEBUG ("FLUSH_STOP event, remove EOS");
......@@ -656,7 +656,6 @@ static void
queue_threshold_reached (GstElement * queue, GstPlayBaseBin * play_base_bin)
{
GstPlayBaseGroup *group;
gpointer data;
gint n;
GST_DEBUG_OBJECT (play_base_bin, "running signal received from queue %s",
......@@ -666,8 +665,7 @@ queue_threshold_reached (GstElement * queue, GstPlayBaseBin * play_base_bin)
g_signal_handlers_disconnect_by_func (queue,
(gpointer) queue_threshold_reached, play_base_bin);
data = g_object_get_data (G_OBJECT (queue), "eos");
if (data) {
if (g_object_get_data (G_OBJECT (queue), "eos")) {
GST_DEBUG_OBJECT (play_base_bin, "disable min threshold time, we are EOS");
g_object_set (queue, "min-threshold-time", (guint64) 0, NULL);
} else {
......@@ -2008,7 +2006,7 @@ make_decoder (GstPlayBaseBin * play_base_bin)
G_CALLBACK (no_more_pads), play_base_bin);
g_signal_connect (G_OBJECT (decoder),
"unknown-type", G_CALLBACK (unknown_type), play_base_bin);
g_object_set_data (G_OBJECT (decoder), "pending", "1");
g_object_set_data (G_OBJECT (decoder), "pending", GINT_TO_POINTER (1));
play_base_bin->pending++;
GST_DEBUG_OBJECT (play_base_bin, "created decodebin, %d pending",
......@@ -2119,7 +2117,7 @@ setup_source (GstPlayBaseBin * play_base_bin)
G_CALLBACK (sub_no_more_pads), play_base_bin);
g_signal_connect (G_OBJECT (db), "unknown-type",
G_CALLBACK (unknown_type), play_base_bin);
g_object_set_data (G_OBJECT (db), "pending", "1");
g_object_set_data (G_OBJECT (db), "pending", GINT_TO_POINTER (1));
play_base_bin->pending++;
GST_DEBUG_OBJECT (play_base_bin, "we have subtitles, %d pending",
......@@ -2209,7 +2207,8 @@ setup_source (GstPlayBaseBin * play_base_bin)
play_base_bin->src_nmp_sig_id =
g_signal_connect (G_OBJECT (play_base_bin->source), "no-more-pads",
G_CALLBACK (source_no_more_pads), play_base_bin);
g_object_set_data (G_OBJECT (play_base_bin->source), "pending", "1");
g_object_set_data (G_OBJECT (play_base_bin->source), "pending",
GINT_TO_POINTER (1));
play_base_bin->pending++;
GST_DEBUG_OBJECT (play_base_bin,
"Source has dynamic output pads, %d pending", play_base_bin->pending);
......
......@@ -837,7 +837,7 @@ gen_video_element (GstPlayBin * play_bin)
goto no_sinks;
}
gst_object_ref (sink);
g_hash_table_insert (play_bin->cache, "video_sink", sink);
g_hash_table_insert (play_bin->cache, (gpointer) "video_sink", sink);
/* create a bin to hold objects, as we create them we add them to this bin so
* that when something goes wrong we only need to unref the bin */
......@@ -875,7 +875,7 @@ gen_video_element (GstPlayBin * play_bin)
/* since we're gonna add it to a bin but don't want to lose it,
* we keep a reference. */
gst_object_ref (element);
g_hash_table_insert (play_bin->cache, "vbin", element);
g_hash_table_insert (play_bin->cache, (gpointer) "vbin", element);
return element;
......@@ -1106,7 +1106,7 @@ gen_audio_element (GstPlayBin * play_bin)
}
gst_object_ref (sink);
g_hash_table_insert (play_bin->cache, "audio_sink", sink);
g_hash_table_insert (play_bin->cache, (gpointer) "audio_sink", sink);
element = gst_bin_new ("abin");
gst_bin_add (GST_BIN_CAST (element), sink);
......@@ -1143,7 +1143,7 @@ gen_audio_element (GstPlayBin * play_bin)
/* since we're gonna add it to a bin but don't want to lose it,
* we keep a reference. */
gst_object_ref (element);
g_hash_table_insert (play_bin->cache, "abin", element);
g_hash_table_insert (play_bin->cache, (gpointer) "abin", element);
return element;
......
......@@ -2221,7 +2221,7 @@ static void
selector_active_pad_changed (GObject * selector, GParamSpec * pspec,
GstPlayBin * playbin)
{
gchar *property;
const gchar *property;
GstSourceGroup *group;
GstSourceSelect *select = NULL;
int i;
......
......@@ -1382,7 +1382,7 @@ make_decoder (GstURIDecodeBin * decoder)
}
}
g_object_set_data (G_OBJECT (decodebin), "pending", "1");
g_object_set_data (G_OBJECT (decodebin), "pending", GINT_TO_POINTER (1));
g_object_set (decodebin, "subtitle-encoding", decoder->encoding, NULL);
decoder->pending++;
GST_LOG_OBJECT (decoder, "have %d pending dynamic objects", decoder->pending);
......@@ -1702,7 +1702,8 @@ setup_source (GstURIDecodeBin * decoder)
decoder->src_nmp_sig_id =
g_signal_connect (decoder->source, "no-more-pads",
G_CALLBACK (source_no_more_pads), decoder);
g_object_set_data (G_OBJECT (decoder->source), "pending", "1");
g_object_set_data (G_OBJECT (decoder->source), "pending",
GINT_TO_POINTER (1));
decoder->pending++;
} else {
if (decoder->is_stream) {
......
......@@ -410,7 +410,7 @@ gst_sub_parse_get_property (GObject * object, guint prop_id,
GST_OBJECT_UNLOCK (subparse);
}
static gchar *
static const gchar *
gst_sub_parse_get_format_description (GstSubParseFormat format)
{
switch (format) {
......@@ -446,9 +446,10 @@ gst_convert_to_utf8 (const gchar * str, gsize len, const gchar * encoding,
gchar *ret = NULL;
*consumed = 0;
/* The char cast is necessary in glib < 2.24 */
ret =
g_convert_with_fallback (str, len, "UTF-8", encoding, "*", consumed, NULL,
err);
g_convert_with_fallback (str, len, "UTF-8", encoding, (char *) "*",
consumed, NULL, err);
if (ret == NULL)
return ret;
......@@ -1858,14 +1859,13 @@ gst_subparse_type_find (GstTypeFind * tf, gpointer private)
static gboolean
plugin_init (GstPlugin * plugin)
{
static gchar *sub_exts[] = { "srt", "sub", "mpsub", "mdvd", "smi", "txt",
"dks", NULL
};
static const gchar *sub_exts[] =
{ "srt", "sub", "mpsub", "mdvd", "smi", "txt", "dks", NULL };
GST_DEBUG_CATEGORY_INIT (sub_parse_debug, "subparse", 0, ".sub parser");
if (!gst_type_find_register (plugin, "subparse_typefind", GST_RANK_MARGINAL,
gst_subparse_type_find, sub_exts, SUB_CAPS, NULL, NULL))
gst_subparse_type_find, (gchar **) sub_exts, SUB_CAPS, NULL, NULL))
return FALSE;
if (!gst_element_register (plugin, "subparse",
......
......@@ -166,7 +166,7 @@ handle_start_font (GstSamiContext * sctx, const xmlChar ** atts)
* sami files.
* It will fix hex color value that start without '#'
*/
gchar *sharp = "";
const gchar *sharp = "";
int len = xmlStrlen (value);
if (!(*value == '#' && len == 7)) {
......
......@@ -3504,7 +3504,7 @@ G_BEGIN_DECLS{ \
sw_data->probability = _probability; \
sw_data->caps = gst_caps_new_simple (name, NULL); \
if (!gst_type_find_register (plugin, name, rank, start_with_type_find,\
ext, sw_data->caps, sw_data, \
(char **) ext, sw_data->caps, sw_data, \
(GDestroyNotify) (sw_data_destroy))) { \
gst_caps_unref (sw_data->caps); \
g_free (sw_data); \
......@@ -3534,7 +3534,7 @@ G_BEGIN_DECLS{ \
sw_data->probability = GST_TYPE_FIND_MAXIMUM; \
sw_data->caps = gst_caps_new_simple (name, NULL); \
if (!gst_type_find_register (plugin, name, rank, riff_type_find, \
ext, sw_data->caps, sw_data, \
(char **) ext, sw_data->caps, sw_data, \
(GDestroyNotify) (sw_data_destroy))) { \
gst_caps_unref (sw_data->caps); \
g_free (sw_data); \
......@@ -3546,7 +3546,7 @@ G_BEGIN_DECLS{ \
#define TYPE_FIND_REGISTER(plugin,name,rank,func,ext,caps,priv,notify) \
G_BEGIN_DECLS{\
if (!gst_type_find_register (plugin, name, rank, func, ext, caps, priv, notify))\
if (!gst_type_find_register (plugin, name, rank, func, (char **) ext, caps, priv, notify))\
return FALSE; \
}G_END_DECLS
......@@ -3561,107 +3561,107 @@ plugin_init (GstPlugin * plugin)
this requires gstreamer/gst/gsttypefind::gst_type_find_register()
to have define the parameter as const
*/
static gchar *asf_exts[] = { "asf", "wm", "wma", "wmv", NULL };
static gchar *au_exts[] = { "au", "snd", NULL };
static gchar *avi_exts[] = { "avi", NULL };
static gchar *qcp_exts[] = { "qcp", NULL };
static gchar *cdxa_exts[] = { "dat", NULL };
static gchar *flac_exts[] = { "flac", NULL };
static gchar *flx_exts[] = { "flc", "fli", NULL };
static gchar *id3_exts[] =
static const gchar *asf_exts[] = { "asf", "wm", "wma", "wmv", NULL };
static const gchar *au_exts[] = { "au", "snd", NULL };
static const gchar *avi_exts[] = { "avi", NULL };
static const gchar *qcp_exts[] = { "qcp", NULL };
static const gchar *cdxa_exts[] = { "dat", NULL };
static const gchar *flac_exts[] = { "flac", NULL };
static const gchar *flx_exts[] = { "flc", "fli", NULL };
static const gchar *id3_exts[] =
{ "mp3", "mp2", "mp1", "mpga", "ogg", "flac", "tta", NULL };
static gchar *apetag_exts[] = { "ape", "mpc", "wv", NULL }; /* and mp3 and wav? */
static gchar *tta_exts[] = { "tta", NULL };
static gchar *mod_exts[] = { "669", "amf", "dsm", "gdm", "far", "imf",
static const gchar *apetag_exts[] = { "ape", "mpc", "wv", NULL }; /* and mp3 and wav? */
static const gchar *tta_exts[] = { "tta", NULL };
static const gchar *mod_exts[] = { "669", "amf", "dsm", "gdm", "far", "imf",
"it", "med", "mod", "mtm", "okt", "sam",
"s3m", "stm", "stx", "ult", "xm", NULL
};
static gchar *mp3_exts[] = { "mp3", "mp2", "mp1", "mpga", NULL };
static gchar *ac3_exts[] = { "ac3", NULL };
static gchar *gsm_exts[] = { "gsm", NULL };
static gchar *musepack_exts[] = { "mpc", "mpp", "mp+", NULL };
static gchar *mpeg_sys_exts[] = { "mpe", "mpeg", "mpg", NULL };
static gchar *mpeg_video_exts[] = { "mpv", "mpeg", "mpg", NULL };
static gchar *mpeg_ts_exts[] = { "ts", NULL };
static gchar *ogg_exts[] = { "anx", "ogg", "ogm", NULL };
static gchar *qt_exts[] = { "mov", NULL };
static gchar *qtif_exts[] = { "qif", "qtif", "qti", NULL };
static gchar *mj2_exts[] = { "mj2", NULL };
static gchar *jp2_exts[] = { "jp2", NULL };
static gchar *rm_exts[] = { "ra", "ram", "rm", "rmvb", NULL };
static gchar *swf_exts[] = { "swf", "swfl", NULL };
static gchar *utf8_exts[] = { "txt", NULL };
static gchar *wav_exts[] = { "wav", NULL };
static gchar *aiff_exts[] = { "aiff", "aif", "aifc", NULL };
static gchar *svx_exts[] = { "iff", "svx", NULL };
static gchar *paris_exts[] = { "paf", NULL };
static gchar *nist_exts[] = { "nist", NULL };
static gchar *voc_exts[] = { "voc", NULL };
static gchar *sds_exts[] = { "sds", NULL };
static gchar *ircam_exts[] = { "sf", NULL };
static gchar *w64_exts[] = { "w64", NULL };
static gchar *shn_exts[] = { "shn", NULL };
static gchar *ape_exts[] = { "ape", NULL };
static gchar *uri_exts[] = { "ram", NULL };
static gchar *sdp_exts[] = { "sdp", NULL };
static gchar *smil_exts[] = { "smil", NULL };
static gchar *html_exts[] = { "htm", "html", NULL };
static gchar *xml_exts[] = { "xml", NULL };
static gchar *jpeg_exts[] = { "jpg", "jpe", "jpeg", NULL };
static gchar *gif_exts[] = { "gif", NULL };
static gchar *png_exts[] = { "png", NULL };
static gchar *bmp_exts[] = { "bmp", NULL };
static gchar *tiff_exts[] = { "tif", "tiff", NULL };
static gchar *matroska_exts[] = { "mkv", "mka", NULL };
static gchar *mve_exts[] = { "mve", NULL };
static gchar *dv_exts[] = { "dv", "dif", NULL };
static gchar *amr_exts[] = { "amr", NULL };
static gchar *ilbc_exts[] = { "ilbc", NULL };
static gchar *sid_exts[] = { "sid", NULL };
static gchar *xcf_exts[] = { "xcf", NULL };
static gchar *mng_exts[] = { "mng", NULL };
static gchar *jng_exts[] = { "jng", NULL };
static gchar *xpm_exts[] = { "xpm", NULL };
static gchar *pnm_exts[] = { "pnm", "ppm", "pgm", "pbm", NULL };
static gchar *ras_exts[] = { "ras", NULL };
static gchar *bz2_exts[] = { "bz2", NULL };
static gchar *gz_exts[] = { "gz", NULL };
static gchar *zip_exts[] = { "zip", NULL };
static gchar *compress_exts[] = { "Z", NULL };
static gchar *m4a_exts[] = { "m4a", NULL };
static gchar *q3gp_exts[] = { "3gp", NULL };
static gchar *aac_exts[] = { "aac", NULL };
static gchar *spc_exts[] = { "spc", NULL };
static gchar *wavpack_exts[] = { "wv", "wvp", NULL };
static gchar *wavpack_correction_exts[] = { "wvc", NULL };
static gchar *rar_exts[] = { "rar", NULL };
static gchar *tar_exts[] = { "tar", NULL };
static gchar *ar_exts[] = { "a", NULL };
static gchar *msdos_exts[] = { "dll", "exe", "ocx", "sys", "scr",
static const gchar *mp3_exts[] = { "mp3", "mp2", "mp1", "mpga", NULL };
static const gchar *ac3_exts[] = { "ac3", NULL };
static const gchar *gsm_exts[] = { "gsm", NULL };
static const gchar *musepack_exts[] = { "mpc", "mpp", "mp+", NULL };
static const gchar *mpeg_sys_exts[] = { "mpe", "mpeg", "mpg", NULL };
static const gchar *mpeg_video_exts[] = { "mpv", "mpeg", "mpg", NULL };
static const gchar *mpeg_ts_exts[] = { "ts", NULL };
static const gchar *ogg_exts[] = { "anx", "ogg", "ogm", NULL };
static const gchar *qt_exts[] = { "mov", NULL };
static const gchar *qtif_exts[] = { "qif", "qtif", "qti", NULL };
static const gchar *mj2_exts[] = { "mj2", NULL };
static const gchar *jp2_exts[] = { "jp2", NULL };
static const gchar *rm_exts[] = { "ra", "ram", "rm", "rmvb", NULL };
static const gchar *swf_exts[] = { "swf", "swfl", NULL };
static const gchar *utf8_exts[] = { "txt", NULL };
static const gchar *wav_exts[] = { "wav", NULL };
static const gchar *aiff_exts[] = { "aiff", "aif", "aifc", NULL };
static const gchar *svx_exts[] = { "iff", "svx", NULL };
static const gchar *paris_exts[] = { "paf", NULL };
static const gchar *nist_exts[] = { "nist", NULL };
static const gchar *voc_exts[] = { "voc", NULL };
static const gchar *sds_exts[] = { "sds", NULL };
static const gchar *ircam_exts[] = { "sf", NULL };
static const gchar *w64_exts[] = { "w64", NULL };
static const gchar *shn_exts[] = { "shn", NULL };
static const gchar *ape_exts[] = { "ape", NULL };
static const gchar *uri_exts[] = { "ram", NULL };
static const gchar *sdp_exts[] = { "sdp", NULL };
static const gchar *smil_exts[] = { "smil", NULL };
static const gchar *html_exts[] = { "htm", "html", NULL };
static const gchar *xml_exts[] = { "xml", NULL };
static const gchar *jpeg_exts[] = { "jpg", "jpe", "jpeg", NULL };
static const gchar *gif_exts[] = { "gif", NULL };
static const gchar *png_exts[] = { "png", NULL };
static const gchar *bmp_exts[] = { "bmp", NULL };
static const gchar *tiff_exts[] = { "tif", "tiff", NULL };
static const gchar *matroska_exts[] = { "mkv", "mka", NULL };
static const gchar *mve_exts[] = { "mve", NULL };
static const gchar *dv_exts[] = { "dv", "dif", NULL };
static const gchar *amr_exts[] = { "amr", NULL };
static const gchar *ilbc_exts[] = { "ilbc", NULL };
static const gchar *sid_exts[] = { "sid", NULL };
static const gchar *xcf_exts[] = { "xcf", NULL };
static const gchar *mng_exts[] = { "mng", NULL };
static const gchar *jng_exts[] = { "jng", NULL };
static const gchar *xpm_exts[] = { "xpm", NULL };
static const gchar *pnm_exts[] = { "pnm", "ppm", "pgm", "pbm", NULL };
static const gchar *ras_exts[] = { "ras", NULL };
static const gchar *bz2_exts[] = { "bz2", NULL };
static const gchar *gz_exts[] = { "gz", NULL };
static const gchar *zip_exts[] = { "zip", NULL };
static const gchar *compress_exts[] = { "Z", NULL };
static const gchar *m4a_exts[] = { "m4a", NULL };
static const gchar *q3gp_exts[] = { "3gp", NULL };
static const gchar *aac_exts[] = { "aac", NULL };
static const gchar *spc_exts[] = { "spc", NULL };
static const gchar *wavpack_exts[] = { "wv", "wvp", NULL };
static const gchar *wavpack_correction_exts[] = { "wvc", NULL };
static const gchar *rar_exts[] = { "rar", NULL };
static const gchar *tar_exts[] = { "tar", NULL };
static const gchar *ar_exts[] = { "a", NULL };
static const gchar *msdos_exts[] = { "dll", "exe", "ocx", "sys", "scr",
"msstyles", "cpl", NULL
};
static gchar *flv_exts[] = { "flv", NULL };
static gchar *m4v_exts[] = { "m4v", NULL };
static gchar *h264_exts[] = { "h264", "x264", "264", NULL };
static gchar *nuv_exts[] = { "nuv", NULL };
static gchar *vivo_exts[] = { "viv", NULL };
static gchar *nsf_exts[] = { "nsf", NULL };
static gchar *gym_exts[] = { "gym", NULL };
static gchar *ay_exts[] = { "ay", NULL };
static gchar *gbs_exts[] = { "gbs", NULL };
static gchar *kss_exts[] = { "kss", NULL };
static gchar *sap_exts[] = { "sap", NULL };
static gchar *vgm_exts[] = { "vgm", NULL };
static gchar *mid_exts[] = { "mid", "midi", NULL };
static gchar *mxmf_exts[] = { "mxmf", NULL };
static gchar *imelody_exts[] = { "imy", "ime", "imelody", NULL };
static gchar *pdf_exts[] = { "pdf", NULL };
static gchar *ps_exts[] = { "ps", NULL };
static gchar *svg_exts[] = { "svg", NULL };
static gchar *mxf_exts[] = { "mxf", NULL };
static gchar *msword_exts[] = { "doc", NULL };
static gchar *dsstore_exts[] = { "DS_Store", NULL };
static gchar *psd_exts[] = { "psd", NULL };
static const gchar *flv_exts[] = { "flv", NULL };
static const gchar *m4v_exts[] = { "m4v", NULL };
static const gchar *h264_exts[] = { "h264", "x264", "264", NULL };
static const gchar *nuv_exts[] = { "nuv", NULL };
static const gchar *vivo_exts[] = { "viv", NULL };
static const gchar *nsf_exts[] = { "nsf", NULL };
static const gchar *gym_exts[] = { "gym", NULL };
static const gchar *ay_exts[] = { "ay", NULL };
static const gchar *gbs_exts[] = { "gbs", NULL };
static const gchar *kss_exts[] = { "kss", NULL };
static const gchar *sap_exts[] = { "sap", NULL };
static const gchar *vgm_exts[] = { "vgm", NULL };
static const gchar *mid_exts[] = { "mid", "midi", NULL };
static const gchar *mxmf_exts[] = { "mxmf", NULL };
static const gchar *imelody_exts[] = { "imy", "ime", "imelody", NULL };
static const gchar *pdf_exts[] = { "pdf", NULL };
static const gchar *ps_exts[] = { "ps", NULL };
static const gchar *svg_exts[] = { "svg", NULL };
static const gchar *mxf_exts[] = { "mxf", NULL };
static const gchar *msword_exts[] = { "doc", NULL };
static const gchar *dsstore_exts[] = { "DS_Store", NULL };
static const gchar *psd_exts[] = { "psd", NULL };
GST_DEBUG_CATEGORY_INIT (type_find_debug, "typefindfunctions",
GST_DEBUG_FG_GREEN | GST_DEBUG_BG_RED, "generic type find functions");
......
......@@ -528,7 +528,7 @@ paintinfo_find_by_structure (const GstStructure * structure)
}
}
} else if (strcmp (media_type, "video/x-raw-yuv") == 0) {
char *s;
const char *s;
int fourcc;
guint32 format;
......@@ -600,7 +600,7 @@ paintrect_find_fourcc (int find_fourcc)
int i;
for (i = 0; i < n_fourccs; i++) {
char *s;
const char *s;
int fourcc;
s = fourcc_list[i].fourcc;
......
......@@ -65,8 +65,8 @@ struct paintinfo_struct
struct fourcc_list_struct
{
int type;
char *fourcc;
char *name;
const char *fourcc;
const char *name;
int bitspp;
void (*paint_setup) (paintinfo * p, unsigned char *dest);
void (*paint_hline) (paintinfo * p, int x, int y, int w);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment