Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
gst-libav
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
46
Issues
46
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Container Registry
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GStreamer
gst-libav
Commits
a450bd02
Commit
a450bd02
authored
Mar 24, 2010
by
Sebastian Dröge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build: Add all kinds of compiler warning flags and fix the resulting warnings
parent
47f9aba4
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
31 additions
and
11 deletions
+31
-11
configure.ac
configure.ac
+5
-1
ext/ffmpeg/gstffmpegaudioresample.c
ext/ffmpeg/gstffmpegaudioresample.c
+2
-0
ext/ffmpeg/gstffmpegcfg.c
ext/ffmpeg/gstffmpegcfg.c
+2
-1
ext/ffmpeg/gstffmpegcfg.h
ext/ffmpeg/gstffmpegcfg.h
+1
-1
ext/ffmpeg/gstffmpegcodecmap.c
ext/ffmpeg/gstffmpegcodecmap.c
+2
-2
ext/ffmpeg/gstffmpegcodecmap.h
ext/ffmpeg/gstffmpegcodecmap.h
+0
-3
ext/ffmpeg/gstffmpegdeinterlace.c
ext/ffmpeg/gstffmpegdeinterlace.c
+2
-0
ext/ffmpeg/gstffmpegdemux.c
ext/ffmpeg/gstffmpegdemux.c
+15
-1
ext/ffmpeg/gstffmpegutils.c
ext/ffmpeg/gstffmpegutils.c
+1
-1
ext/ffmpeg/gstffmpegutils.h
ext/ffmpeg/gstffmpegutils.h
+1
-1
No files found.
configure.ac
View file @
a450bd02
...
...
@@ -144,7 +144,11 @@ dnl set location of plugin directory
AG_GST_SET_PLUGINDIR
dnl define an ERROR_CFLAGS Makefile variable
AG_GST_SET_ERROR_CFLAGS($GST_GIT)
AG_GST_SET_ERROR_CFLAGS($GST_GIT, [
-Wmissing-declarations -Wmissing-prototypes -Wredundant-decls -Wundef
-Wwrite-strings -Wformat-nonliteral -Wformat-security -Wold-style-definition
-Wcast-align -Winit-self -Wmissing-include-dirs -Waddress
-Waggregate-return -Wno-multichar -Wnested-externs ])
dnl define correct level for debugging messages
AG_GST_SET_LEVEL_DEFAULT($GST_GIT)
...
...
ext/ffmpeg/gstffmpegaudioresample.c
View file @
a450bd02
...
...
@@ -65,6 +65,8 @@ typedef struct _GstFFMpegAudioResampleClass
#define GST_IS_FFMPEGAUDIORESAMPLE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FFMPEGAUDIORESAMPLE))
GType
gst_ffmpegaudioresample_get_type
(
void
);
static
GstStaticPadTemplate
src_factory
=
GST_STATIC_PAD_TEMPLATE
(
"src"
,
GST_PAD_SRC
,
GST_PAD_ALWAYS
,
...
...
ext/ffmpeg/gstffmpegcfg.c
View file @
a450bd02
...
...
@@ -27,6 +27,7 @@
#include "gstffmpeg.h"
#include "gstffmpegenc.h"
#include "gstffmpegcfg.h"
#include <string.h>
...
...
@@ -381,7 +382,7 @@ static gint huffyuv[] = {
* or some may have slightly varying enum-types with more or less options.
* The enum-types themselves should be declared above. */
void
gst_ffmpeg_cfg_init
()
gst_ffmpeg_cfg_init
(
void
)
{
GParamSpec
*
pspec
;
...
...
ext/ffmpeg/gstffmpegcfg.h
View file @
a450bd02
...
...
@@ -23,7 +23,7 @@
G_BEGIN_DECLS
void
gst_ffmpeg_cfg_init
();
void
gst_ffmpeg_cfg_init
(
void
);
void
gst_ffmpeg_cfg_install_property
(
GstFFMpegEncClass
*
klass
,
guint
base
);
...
...
ext/ffmpeg/gstffmpegcodecmap.c
View file @
a450bd02
...
...
@@ -1268,7 +1268,7 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
case
CODEC_ID_ADPCM_EA_XAS
:
case
CODEC_ID_ADPCM_THP
:
{
gchar
*
layout
=
NULL
;
const
gchar
*
layout
=
NULL
;
switch
(
codec_id
)
{
case
CODEC_ID_ADPCM_IMA_QT
:
...
...
@@ -1417,7 +1417,7 @@ gst_ffmpeg_codecid_to_caps (enum CodecID codec_id,
case
CODEC_ID_XAN_DPCM
:
case
CODEC_ID_SOL_DPCM
:
{
gchar
*
layout
=
NULL
;
const
gchar
*
layout
=
NULL
;
switch
(
codec_id
)
{
case
CODEC_ID_ROQ_DPCM
:
...
...
ext/ffmpeg/gstffmpegcodecmap.h
View file @
a450bd02
...
...
@@ -125,7 +125,4 @@ gst_ffmpeg_formatid_get_codecids (const gchar *format_name,
GstBuffer
*
new_aligned_buffer
(
gint
size
,
GstCaps
*
caps
);
#endif
/* __GST_FFMPEG_CODECMAP_H__ */
ext/ffmpeg/gstffmpegdeinterlace.c
View file @
a450bd02
...
...
@@ -66,6 +66,8 @@ typedef struct _GstFFMpegDeinterlaceClass
#define GST_IS_FFMPEGDEINTERLACE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FFMPEGDEINTERLACE))
GType
gst_ffmpegdeinterlace_get_type
(
void
);
static
GstStaticPadTemplate
src_factory
=
GST_STATIC_PAD_TEMPLATE
(
"src"
,
GST_PAD_SRC
,
GST_PAD_ALWAYS
,
...
...
ext/ffmpeg/gstffmpegdemux.c
View file @
a450bd02
...
...
@@ -934,6 +934,18 @@ gst_ffmpegdemux_aggregated_flow (GstFFMpegDemux * demux)
return
res
;
}
static
gchar
*
gst_ffmpegdemux_create_padname
(
const
gchar
*
templ
,
gint
n
)
{
GString
*
string
;
string
=
g_string_new
(
templ
);
g_string_truncate
(
string
,
string
->
len
-
4
);
g_string_append_printf
(
string
,
"%02d"
,
n
);
return
g_string_free
(
string
,
FALSE
);
}
static
GstFFStream
*
gst_ffmpegdemux_get_stream
(
GstFFMpegDemux
*
demux
,
AVStream
*
avstream
)
{
...
...
@@ -988,7 +1000,9 @@ gst_ffmpegdemux_get_stream (GstFFMpegDemux * demux, AVStream * avstream)
stream
->
unknown
=
FALSE
;
/* create new pad for this stream */
padname
=
g_strdup_printf
(
GST_PAD_TEMPLATE_NAME_TEMPLATE
(
templ
),
num
);
padname
=
gst_ffmpegdemux_create_padname
(
GST_PAD_TEMPLATE_NAME_TEMPLATE
(
templ
),
num
);
pad
=
gst_pad_new_from_template
(
templ
,
padname
);
g_free
(
padname
);
...
...
ext/ffmpeg/gstffmpegutils.c
View file @
a450bd02
...
...
@@ -92,7 +92,7 @@ typedef struct PixFmtInfo
/* this table gives more information about formats */
static
PixFmtInfo
pix_fmt_info
[
PIX_FMT_NB
];
void
gst_ffmpeg_init_pix_fmt_info
()
gst_ffmpeg_init_pix_fmt_info
(
void
)
{
/* YUV formats */
pix_fmt_info
[
PIX_FMT_YUV420P
].
name
=
g_strdup
(
"yuv420p"
);
...
...
ext/ffmpeg/gstffmpegutils.h
View file @
a450bd02
...
...
@@ -78,7 +78,7 @@ gst_ffmpeg_time_gst_to_ff (guint64 time, AVRational base)
}
void
gst_ffmpeg_init_pix_fmt_info
();
gst_ffmpeg_init_pix_fmt_info
(
void
);
G_CONST_RETURN
gchar
*
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment