mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 11:45:25 +00:00
fixed first bunch of compiler warnings
Original commit message from CVS: fixed first bunch of compiler warnings
This commit is contained in:
parent
89aac2284d
commit
b73bb27c60
8 changed files with 16 additions and 21 deletions
2
common
2
common
|
@ -1 +1 @@
|
||||||
Subproject commit 38267abf56a3428093cea71429dca6a24a927547
|
Subproject commit 6148068f2318e85d8e66df485342b630d8fb49ac
|
|
@ -246,12 +246,6 @@ gst_chart_sinkconnect (GstPad *pad, GstCaps *caps)
|
||||||
return GST_PAD_CONNECT_OK;
|
return GST_PAD_CONNECT_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
gst_chart_free (GstChart *chart)
|
|
||||||
{
|
|
||||||
g_free (chart);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
draw_chart_16bpp(guchar * output, gint width, gint height,
|
draw_chart_16bpp(guchar * output, gint width, gint height,
|
||||||
gint16 * src_data, gint src_size)
|
gint16 * src_data, gint src_size)
|
||||||
|
|
|
@ -58,11 +58,11 @@ static double picture_rates [16] =
|
||||||
0,
|
0,
|
||||||
0
|
0
|
||||||
};
|
};
|
||||||
|
/* deined but not used
|
||||||
static double ratio [16] = { 0., 1., 0.6735, 0.7031, 0.7615, 0.8055,
|
static double ratio [16] = { 0., 1., 0.6735, 0.7031, 0.7615, 0.8055,
|
||||||
0.8437, 0.8935, 0.9157, 0.9815, 1.0255, 1.0695, 1.0950, 1.1575,
|
0.8437, 0.8935, 0.9157, 0.9815, 1.0255, 1.0695, 1.0950, 1.1575,
|
||||||
1.2015, 0.};
|
1.2015, 0.};
|
||||||
|
*/
|
||||||
static char picture_types [4][3] =
|
static char picture_types [4][3] =
|
||||||
{ "I", "P", "B", "D" };
|
{ "I", "P", "B", "D" };
|
||||||
|
|
||||||
|
@ -82,7 +82,7 @@ static double dfrequency[9] =
|
||||||
{44.1, 48, 32, 22.05, 24, 16, 11.025, 12, 8};
|
{44.1, 48, 32, 22.05, 24, 16, 11.025, 12, 8};
|
||||||
|
|
||||||
static unsigned int samples [4] = {192, 384, 1152, 1152};
|
static unsigned int samples [4] = {192, 384, 1152, 1152};
|
||||||
|
/* deined but not used
|
||||||
static char mode [4][15] =
|
static char mode [4][15] =
|
||||||
{ "stereo", "joint stereo", "dual channel", "single channel" };
|
{ "stereo", "joint stereo", "dual channel", "single channel" };
|
||||||
static char copyright [2][20] =
|
static char copyright [2][20] =
|
||||||
|
@ -91,7 +91,7 @@ static char original [2][10] =
|
||||||
{ "copy","original" };
|
{ "copy","original" };
|
||||||
static char emphasis [4][20] =
|
static char emphasis [4][20] =
|
||||||
{ "none", "50/15 microseconds", "reserved", "CCITT J.17" };
|
{ "none", "50/15 microseconds", "reserved", "CCITT J.17" };
|
||||||
|
*/
|
||||||
static void mpeg1mux_buffer_update_video_info(Mpeg1MuxBuffer *mb);
|
static void mpeg1mux_buffer_update_video_info(Mpeg1MuxBuffer *mb);
|
||||||
static void mpeg1mux_buffer_update_audio_info(Mpeg1MuxBuffer *mb);
|
static void mpeg1mux_buffer_update_audio_info(Mpeg1MuxBuffer *mb);
|
||||||
|
|
||||||
|
|
|
@ -94,9 +94,9 @@ static void gst_mp1videoparse_init (Mp1VideoParse *mp1videoparse);
|
||||||
|
|
||||||
static void gst_mp1videoparse_chain (GstPad *pad, GstBuffer *buf);
|
static void gst_mp1videoparse_chain (GstPad *pad, GstBuffer *buf);
|
||||||
static void gst_mp1videoparse_real_chain (Mp1VideoParse *mp1videoparse, GstBuffer *buf, GstPad *outpad);
|
static void gst_mp1videoparse_real_chain (Mp1VideoParse *mp1videoparse, GstBuffer *buf, GstPad *outpad);
|
||||||
|
/* defined but not used
|
||||||
static void gst_mp1videoparse_flush (Mp1VideoParse *mp1videoparse);
|
static void gst_mp1videoparse_flush (Mp1VideoParse *mp1videoparse);
|
||||||
|
*/
|
||||||
static GstPadTemplate *src_template, *sink_template;
|
static GstPadTemplate *src_template, *sink_template;
|
||||||
|
|
||||||
static GstElementClass *parent_class = NULL;
|
static GstElementClass *parent_class = NULL;
|
||||||
|
@ -203,7 +203,7 @@ mp1videoparse_find_next_gop (Mp1VideoParse *mp1videoparse, GstBuffer *buf)
|
||||||
|
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
/* defined but not used
|
||||||
static void
|
static void
|
||||||
gst_mp1videoparse_flush (Mp1VideoParse *mp1videoparse)
|
gst_mp1videoparse_flush (Mp1VideoParse *mp1videoparse)
|
||||||
{
|
{
|
||||||
|
@ -216,7 +216,7 @@ gst_mp1videoparse_flush (Mp1VideoParse *mp1videoparse)
|
||||||
mp1videoparse->in_flush = TRUE;
|
mp1videoparse->in_flush = TRUE;
|
||||||
mp1videoparse->picture_in_buffer = 0;
|
mp1videoparse->picture_in_buffer = 0;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
static void
|
static void
|
||||||
gst_mp1videoparse_chain (GstPad *pad,GstBuffer *buf)
|
gst_mp1videoparse_chain (GstPad *pad,GstBuffer *buf)
|
||||||
{
|
{
|
||||||
|
|
|
@ -5,7 +5,7 @@ plugin_LTLIBRARIES = libgstmpeg2subt.la
|
||||||
libgstmpeg2subt_la_SOURCES = gstmpeg2subt.c
|
libgstmpeg2subt_la_SOURCES = gstmpeg2subt.c
|
||||||
|
|
||||||
if HAVE_CPU_I386
|
if HAVE_CPU_I386
|
||||||
ARCHCFLAGS = -m486
|
ARCHCFLAGS = -mcpu=486
|
||||||
else
|
else
|
||||||
ARCHCFLAGS =
|
ARCHCFLAGS =
|
||||||
endif
|
endif
|
||||||
|
|
|
@ -43,14 +43,14 @@ static GstElementDetails mpeg2subt_details = {
|
||||||
"Wim Taymans <wim.taymans@chello.be>",
|
"Wim Taymans <wim.taymans@chello.be>",
|
||||||
"(C) 2000",
|
"(C) 2000",
|
||||||
};
|
};
|
||||||
|
/* defined but not used
|
||||||
static GstTypeDefinition mpeg2subtitledefinition = {
|
static GstTypeDefinition mpeg2subtitledefinition = {
|
||||||
"mpeg2subt_video/mpeg2ubtitle",
|
"mpeg2subt_video/mpeg2ubtitle",
|
||||||
"video/mpeg2subtitle",
|
"video/mpeg2subtitle",
|
||||||
NULL,
|
NULL,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
*/
|
||||||
/* GstMpeg2Subt signals and args */
|
/* GstMpeg2Subt signals and args */
|
||||||
enum {
|
enum {
|
||||||
/* FILL ME */
|
/* FILL ME */
|
||||||
|
|
|
@ -144,10 +144,10 @@ gst_mp3parse_init (GstMPEGAudioParse *mp3parse)
|
||||||
mp3parse->sinkpad = gst_pad_new_from_template(sink_temp, "sink");
|
mp3parse->sinkpad = gst_pad_new_from_template(sink_temp, "sink");
|
||||||
gst_element_add_pad(GST_ELEMENT(mp3parse),mp3parse->sinkpad);
|
gst_element_add_pad(GST_ELEMENT(mp3parse),mp3parse->sinkpad);
|
||||||
|
|
||||||
|
gst_element_set_loop_function (GST_ELEMENT(mp3parse),gst_mp3parse_loop);
|
||||||
#if 1 /* set this to one to use the old chaining code */
|
#if 1 /* set this to one to use the old chaining code */
|
||||||
gst_pad_set_chain_function(mp3parse->sinkpad,gst_mp3parse_chain);
|
gst_pad_set_chain_function(mp3parse->sinkpad,gst_mp3parse_chain);
|
||||||
#else /* else you get the new loop-based code, which isn't complete yet */
|
gst_element_set_loop_function (GST_ELEMENT(mp3parse),NULL);
|
||||||
gst_element_set_loop_function (GST_ELEMENT(mp3parse),gst_mp3parse_loop);
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
mp3parse->srcpad = gst_pad_new_from_template(src_temp, "src");
|
mp3parse->srcpad = gst_pad_new_from_template(src_temp, "src");
|
||||||
|
|
|
@ -63,7 +63,8 @@ do {
|
||||||
out = in;
|
out = in;
|
||||||
} else {
|
} else {
|
||||||
j = 0;
|
j = 0;
|
||||||
|
w = 0;
|
||||||
|
|
||||||
out = gst_buffer_new_from_pool(filter->bufpool, 0, 0);
|
out = gst_buffer_new_from_pool(filter->bufpool, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue