mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
don't mix tabs and spaces
Original commit message from CVS: don't mix tabs and spaces
This commit is contained in:
parent
8392245d80
commit
f83cb187de
126 changed files with 5083 additions and 5019 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* *.c, *.cc: don't mix tabs and spaces
|
||||
|
||||
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* gst-libs/gst/play/play.c: (gst_play_pipeline_setup):
|
||||
|
|
|
@ -60,7 +60,8 @@ typedef struct
|
|||
GstElement *bin;
|
||||
GstElement *pipeline;
|
||||
GstIndex *index;
|
||||
} dyn_link;
|
||||
}
|
||||
dyn_link;
|
||||
|
||||
static void
|
||||
dynamic_link (GstPadTemplate * templ, GstPad * newpad, gpointer data)
|
||||
|
|
|
@ -47,7 +47,8 @@ typedef struct
|
|||
{
|
||||
const gchar *name;
|
||||
const GstFormat format;
|
||||
} seek_format;
|
||||
}
|
||||
seek_format;
|
||||
|
||||
static seek_format seek_formats[] = {
|
||||
{"tim", GST_FORMAT_TIME},
|
||||
|
|
|
@ -28,7 +28,8 @@ typedef struct
|
|||
const gchar *padname;
|
||||
GstPad *target;
|
||||
GstElement *bin;
|
||||
} dyn_link;
|
||||
}
|
||||
dyn_link;
|
||||
|
||||
static GstElement *
|
||||
gst_element_factory_make_or_warn (gchar * type, gchar * name)
|
||||
|
@ -572,7 +573,8 @@ typedef struct
|
|||
{
|
||||
const gchar *name;
|
||||
const GstFormat format;
|
||||
} seek_format;
|
||||
}
|
||||
seek_format;
|
||||
|
||||
static seek_format seek_formats[] = {
|
||||
{"tim", GST_FORMAT_TIME},
|
||||
|
@ -808,7 +810,8 @@ typedef struct
|
|||
{
|
||||
gchar *name;
|
||||
GstElement *(*func) (const gchar * location);
|
||||
} Pipeline;
|
||||
}
|
||||
Pipeline;
|
||||
|
||||
static Pipeline pipelines[] = {
|
||||
{"mp3", make_mp3_pipeline},
|
||||
|
|
|
@ -91,7 +91,8 @@ typedef struct
|
|||
{
|
||||
const gchar *name;
|
||||
const GstFormat format;
|
||||
} seek_format;
|
||||
}
|
||||
seek_format;
|
||||
|
||||
static seek_format seek_formats[] = {
|
||||
{"tim", GST_FORMAT_TIME},
|
||||
|
|
|
@ -57,6 +57,7 @@ gst_alsa_clock_get_type (void)
|
|||
(GInstanceInitFunc) gst_alsa_clock_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
clock_type = g_type_register_static (GST_TYPE_CLOCK, "GstAlsaClock",
|
||||
&clock_info, 0);
|
||||
}
|
||||
|
|
|
@ -1030,6 +1030,7 @@ cdparanoia_get_query_types (GstPad * pad)
|
|||
GST_QUERY_SEGMENT_END,
|
||||
0
|
||||
};
|
||||
|
||||
return src_query_types;
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,8 @@ typedef enum
|
|||
GST_GNOMEVFSSINK_OPEN = GST_ELEMENT_FLAG_LAST,
|
||||
|
||||
GST_GNOMEVFSSINK_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
|
||||
} GstGnomeVFSSinkFlags;
|
||||
}
|
||||
GstGnomeVFSSinkFlags;
|
||||
|
||||
struct _GstGnomeVFSSink
|
||||
{
|
||||
|
@ -144,6 +145,7 @@ gst_gnomevfssink_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_gnomevfssink_init,
|
||||
};
|
||||
|
||||
gnomevfssink_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstGnomeVFSSink",
|
||||
&gnomevfssink_info, 0);
|
||||
|
|
|
@ -73,7 +73,8 @@ typedef enum
|
|||
GST_GNOMEVFSSRC_OPEN = GST_ELEMENT_FLAG_LAST,
|
||||
|
||||
GST_GNOMEVFSSRC_FLAG_LAST = GST_ELEMENT_FLAG_LAST + 2,
|
||||
} GstGnomeVFSSrcFlags;
|
||||
}
|
||||
GstGnomeVFSSrcFlags;
|
||||
|
||||
typedef struct _GstGnomeVFSSrc GstGnomeVFSSrc;
|
||||
typedef struct _GstGnomeVFSSrcClass GstGnomeVFSSrcClass;
|
||||
|
@ -142,6 +143,7 @@ gst_gnomevfssrc_get_formats (GstPad * pad)
|
|||
GST_FORMAT_BYTES,
|
||||
0,
|
||||
};
|
||||
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
@ -153,6 +155,7 @@ gst_gnomevfssrc_get_query_types (GstPad * pad)
|
|||
GST_QUERY_POSITION,
|
||||
0,
|
||||
};
|
||||
|
||||
return types;
|
||||
}
|
||||
|
||||
|
@ -166,6 +169,7 @@ gst_gnomevfssrc_get_event_mask (GstPad * pad)
|
|||
{GST_EVENT_SIZE, 0},
|
||||
{0, 0},
|
||||
};
|
||||
|
||||
return masks;
|
||||
}
|
||||
|
||||
|
@ -235,6 +239,7 @@ gst_gnomevfssrc_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_gnomevfssrc_init,
|
||||
};
|
||||
|
||||
gnomevfssrc_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT,
|
||||
"GstGnomeVFSSrc", &gnomevfssrc_info, 0);
|
||||
|
|
|
@ -52,7 +52,8 @@ typedef enum
|
|||
GST_OGG_STATE_SEEK,
|
||||
/* normal playback */
|
||||
GST_OGG_STATE_PLAY
|
||||
} GstOggState;
|
||||
}
|
||||
GstOggState;
|
||||
|
||||
/* all information needed for one ogg stream */
|
||||
typedef struct
|
||||
|
@ -69,7 +70,8 @@ typedef struct
|
|||
glong pages; /* number of pages in stream or 0 */
|
||||
|
||||
guint flags;
|
||||
} GstOggPad;
|
||||
}
|
||||
GstOggPad;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
@ -82,7 +84,8 @@ GstOggPadFlags;
|
|||
typedef struct
|
||||
{
|
||||
GSList *pads; /* list of GstOggPad */
|
||||
} GstOggChain;
|
||||
}
|
||||
GstOggChain;
|
||||
|
||||
#define CURRENT_CHAIN(ogg) (&g_array_index ((ogg)->chains, GstOggChain, (ogg)->current_chain))
|
||||
#define FOR_PAD_IN_CURRENT_CHAIN(ogg, _pad, ...) G_STMT_START{ \
|
||||
|
@ -98,7 +101,8 @@ typedef enum
|
|||
GST_OGG_FLAG_BOS = GST_ELEMENT_FLAG_LAST,
|
||||
GST_OGG_FLAG_EOS,
|
||||
GST_OGG_FLAG_WAIT_FOR_DISCONT
|
||||
} GstOggFlag;
|
||||
}
|
||||
GstOggFlag;
|
||||
|
||||
struct _GstOggDemux
|
||||
{
|
||||
|
@ -250,6 +254,7 @@ gst_ogg_demux_get_event_masks (GstPad * pad)
|
|||
{GST_EVENT_SEEK, GST_SEEK_METHOD_SET | GST_SEEK_FLAG_FLUSH},
|
||||
{0,}
|
||||
};
|
||||
|
||||
return gst_ogg_demux_src_event_masks;
|
||||
}
|
||||
static const GstQueryType *
|
||||
|
@ -260,6 +265,7 @@ gst_ogg_demux_get_query_types (GstPad * pad)
|
|||
GST_QUERY_POSITION,
|
||||
0
|
||||
};
|
||||
|
||||
return gst_ogg_demux_src_query_types;
|
||||
}
|
||||
|
||||
|
@ -897,7 +903,8 @@ typedef struct
|
|||
ogg_packet *packet;
|
||||
guint best_probability;
|
||||
GstCaps *caps;
|
||||
} OggTypeFind;
|
||||
}
|
||||
OggTypeFind;
|
||||
static guint8 *
|
||||
ogg_find_peek (gpointer data, gint64 offset, guint size)
|
||||
{
|
||||
|
|
|
@ -88,6 +88,7 @@ gst_textoverlay_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_textoverlay_init,
|
||||
};
|
||||
|
||||
textoverlay_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstTextOverlay",
|
||||
&textoverlay_info, 0);
|
||||
|
|
|
@ -87,6 +87,7 @@ gst_timeoverlay_get_type (void)
|
|||
0,
|
||||
gst_timeoverlay_init,
|
||||
};
|
||||
|
||||
timeoverlay_type = g_type_register_static (GST_TYPE_VIDEOFILTER,
|
||||
"GstTimeoverlay", &timeoverlay_info, 0);
|
||||
}
|
||||
|
|
|
@ -114,6 +114,7 @@ vorbis_dec_get_formats (GstPad * pad)
|
|||
GST_FORMAT_TIME,
|
||||
0
|
||||
};
|
||||
|
||||
return (GST_PAD_IS_SRC (pad) ? src_formats : sink_formats);
|
||||
}
|
||||
|
||||
|
|
|
@ -350,6 +350,7 @@ gst_vorbisenc_get_query_types (GstPad * pad)
|
|||
GST_QUERY_POSITION,
|
||||
0
|
||||
};
|
||||
|
||||
return gst_vorbisenc_src_query_types;
|
||||
}
|
||||
|
||||
|
|
|
@ -57,6 +57,7 @@ gst_audio_clock_get_type (void)
|
|||
(GInstanceInitFunc) gst_audio_clock_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
clock_type = g_type_register_static (GST_TYPE_SYSTEM_CLOCK, "GstAudioClock",
|
||||
&clock_info, 0);
|
||||
}
|
||||
|
|
|
@ -73,6 +73,7 @@ gst_audiofilter_get_type (void)
|
|||
0,
|
||||
gst_audiofilter_init,
|
||||
};
|
||||
|
||||
audiofilter_type = g_type_register_static (GST_TYPE_ELEMENT,
|
||||
"GstAudiofilter", &audiofilter_info, G_TYPE_FLAG_ABSTRACT);
|
||||
}
|
||||
|
|
|
@ -107,6 +107,7 @@ gst_audiofilter_template_get_type (void)
|
|||
0,
|
||||
NULL,
|
||||
};
|
||||
|
||||
audiofilter_template_type = g_type_register_static (GST_TYPE_AUDIOFILTER,
|
||||
"GstAudiofilterTemplate", &audiofilter_template_info, 0);
|
||||
}
|
||||
|
|
|
@ -686,3 +686,5 @@ gst_idct_mmx32_idct (short *blk)
|
|||
emms (); /* restore processor state
*/
|
||||
/* all done
*/
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -151,7 +151,8 @@ typedef struct
|
|||
{
|
||||
guint meta;
|
||||
guint encoded;
|
||||
} TagFlagScore;
|
||||
}
|
||||
TagFlagScore;
|
||||
|
||||
static void
|
||||
tag_flag_score (const GstTagList * list, const gchar * tag, gpointer user_data)
|
||||
|
|
|
@ -113,6 +113,7 @@ gst_media_info_get_type (void)
|
|||
(GInstanceInitFunc) gst_media_info_instance_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
gst_media_info_type = g_type_register_static (G_TYPE_OBJECT,
|
||||
"GstMediaInfo", &gst_media_info_info, 0);
|
||||
}
|
||||
|
|
|
@ -108,7 +108,8 @@ static union
|
|||
{
|
||||
int i[4];
|
||||
float f[4];
|
||||
} av_tmp __attribute__ ((__aligned__ (16)));
|
||||
}
|
||||
av_tmp __attribute__ ((__aligned__ (16)));
|
||||
|
||||
void
|
||||
conv_double_short_altivec (double *dest, short *src, int n)
|
||||
|
|
|
@ -777,7 +777,8 @@ gst_riff_read_info (GstRiffRead * riff)
|
|||
|
||||
if (name && name[0] != '\0') {
|
||||
GValue src = { 0 }
|
||||
, dest = {
|
||||
, dest =
|
||||
{
|
||||
0};
|
||||
GType dest_type = gst_tag_get_type (type);
|
||||
|
||||
|
|
|
@ -74,6 +74,7 @@ gst_videofilter_get_type (void)
|
|||
0,
|
||||
gst_videofilter_init,
|
||||
};
|
||||
|
||||
videofilter_type = g_type_register_static (GST_TYPE_ELEMENT,
|
||||
"GstVideofilter", &videofilter_info, G_TYPE_FLAG_ABSTRACT);
|
||||
}
|
||||
|
|
|
@ -97,6 +97,7 @@ gst_adder_get_type (void)
|
|||
sizeof (GstAdder), 0,
|
||||
(GInstanceInitFunc) gst_adder_init,
|
||||
};
|
||||
|
||||
adder_type = g_type_register_static (GST_TYPE_ELEMENT, "GstAdder",
|
||||
&adder_info, 0);
|
||||
}
|
||||
|
|
|
@ -77,6 +77,7 @@ gst_audioscale_method_get_type (void)
|
|||
{GST_RESAMPLE_SINC, "2", "Sinc"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!audioscale_method_type) {
|
||||
audioscale_method_type = g_enum_register_static ("GstAudioscaleMethod",
|
||||
audioscale_methods);
|
||||
|
@ -116,6 +117,7 @@ audioscale_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_audioscale_init,
|
||||
};
|
||||
|
||||
audioscale_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "Audioscale",
|
||||
&audioscale_info, 0);
|
||||
|
|
|
@ -109,6 +109,7 @@ gst_sinesrc_get_type (void)
|
|||
sizeof (GstSineSrc), 0,
|
||||
(GInstanceInitFunc) gst_sinesrc_init,
|
||||
};
|
||||
|
||||
sinesrc_type = g_type_register_static (GST_TYPE_ELEMENT, "GstSineSrc",
|
||||
&sinesrc_info, 0);
|
||||
}
|
||||
|
|
|
@ -415,7 +415,8 @@ typedef struct
|
|||
guint count;
|
||||
guint data_count;
|
||||
GList *entries;
|
||||
} MyForEach;
|
||||
}
|
||||
MyForEach;
|
||||
|
||||
GList *
|
||||
gst_tag_to_vorbis_comments (const GstTagList * list, const gchar * tag)
|
||||
|
|
|
@ -60,6 +60,7 @@ gst_tcpsink_control_get_type (void)
|
|||
{CONTROL_TCP, "2", "tcp"},
|
||||
{CONTROL_ZERO, NULL, NULL}
|
||||
};
|
||||
|
||||
if (!tcpsink_control_type) {
|
||||
tcpsink_control_type =
|
||||
g_enum_register_static ("GstTCPSinkControl", tcpsink_control);
|
||||
|
@ -105,6 +106,7 @@ gst_tcpsink_get_type (void)
|
|||
(GInstanceInitFunc) gst_tcpsink_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
tcpsink_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstTCPSink", &tcpsink_info,
|
||||
0);
|
||||
|
|
|
@ -60,6 +60,7 @@ gst_tcpsrc_control_get_type (void)
|
|||
{CONTROL_TCP, "2", "tcp"},
|
||||
{CONTROL_ZERO, NULL, NULL}
|
||||
};
|
||||
|
||||
if (!tcpsrc_control_type) {
|
||||
tcpsrc_control_type =
|
||||
g_enum_register_static ("GstTCPSrcControl", tcpsrc_control);
|
||||
|
@ -103,6 +104,7 @@ gst_tcpsrc_get_type (void)
|
|||
(GInstanceInitFunc) gst_tcpsrc_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
tcpsrc_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstTCPSrc", &tcpsrc_info, 0);
|
||||
}
|
||||
|
|
|
@ -1178,7 +1178,8 @@ typedef struct
|
|||
guint size;
|
||||
guint probability;
|
||||
GstCaps *caps;
|
||||
} GstTypeFindData;
|
||||
}
|
||||
GstTypeFindData;
|
||||
static void
|
||||
start_with_type_find (GstTypeFind * tf, gpointer private)
|
||||
{
|
||||
|
|
|
@ -61,6 +61,7 @@ gst_videoscale_method_get_type (void)
|
|||
{GST_VIDEOSCALE_BICUBIC, "3", "Bicubic"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!videoscale_method_type) {
|
||||
videoscale_method_type =
|
||||
g_enum_register_static ("GstVideoscaleMethod", videoscale_methods);
|
||||
|
@ -132,6 +133,7 @@ gst_videoscale_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_videoscale_init,
|
||||
};
|
||||
|
||||
videoscale_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstVideoscale",
|
||||
&videoscale_info, 0);
|
||||
|
|
|
@ -92,6 +92,7 @@ gst_v4lmjpegsink_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_v4lmjpegsink_init,
|
||||
};
|
||||
|
||||
v4lmjpegsink_type =
|
||||
g_type_register_static (GST_TYPE_V4LELEMENT, "GstV4lMjpegSink",
|
||||
&v4lmjpegsink_info, 0);
|
||||
|
|
|
@ -121,6 +121,7 @@ gst_v4lmjpegsrc_get_type (void)
|
|||
(GInstanceInitFunc) gst_v4lmjpegsrc_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
v4lmjpegsrc_type =
|
||||
g_type_register_static (GST_TYPE_V4LELEMENT, "GstV4lMjpegSrc",
|
||||
&v4lmjpegsrc_info, 0);
|
||||
|
|
|
@ -115,6 +115,7 @@ gst_v4lsrc_get_type (void)
|
|||
(GInstanceInitFunc) gst_v4lsrc_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
v4lsrc_type =
|
||||
g_type_register_static (GST_TYPE_V4LELEMENT, "GstV4lSrc", &v4lsrc_info,
|
||||
0);
|
||||
|
|
|
@ -28,7 +28,8 @@ typedef struct
|
|||
const gchar *padname;
|
||||
GstPad *target;
|
||||
GstElement *bin;
|
||||
} dyn_link;
|
||||
}
|
||||
dyn_link;
|
||||
|
||||
static GstElement *
|
||||
gst_element_factory_make_or_warn (gchar * type, gchar * name)
|
||||
|
@ -572,7 +573,8 @@ typedef struct
|
|||
{
|
||||
const gchar *name;
|
||||
const GstFormat format;
|
||||
} seek_format;
|
||||
}
|
||||
seek_format;
|
||||
|
||||
static seek_format seek_formats[] = {
|
||||
{"tim", GST_FORMAT_TIME},
|
||||
|
@ -808,7 +810,8 @@ typedef struct
|
|||
{
|
||||
gchar *name;
|
||||
GstElement *(*func) (const gchar * location);
|
||||
} Pipeline;
|
||||
}
|
||||
Pipeline;
|
||||
|
||||
static Pipeline pipelines[] = {
|
||||
{"mp3", make_mp3_pipeline},
|
||||
|
|
|
@ -91,7 +91,8 @@ typedef struct
|
|||
{
|
||||
const gchar *name;
|
||||
const GstFormat format;
|
||||
} seek_format;
|
||||
}
|
||||
seek_format;
|
||||
|
||||
static seek_format seek_formats[] = {
|
||||
{"tim", GST_FORMAT_TIME},
|
||||
|
|
|
@ -60,7 +60,8 @@ typedef struct
|
|||
GstElement *bin;
|
||||
GstElement *pipeline;
|
||||
GstIndex *index;
|
||||
} dyn_link;
|
||||
}
|
||||
dyn_link;
|
||||
|
||||
static void
|
||||
dynamic_link (GstPadTemplate * templ, GstPad * newpad, gpointer data)
|
||||
|
|
|
@ -47,7 +47,8 @@ typedef struct
|
|||
{
|
||||
const gchar *name;
|
||||
const GstFormat format;
|
||||
} seek_format;
|
||||
}
|
||||
seek_format;
|
||||
|
||||
static seek_format seek_formats[] = {
|
||||
{"tim", GST_FORMAT_TIME},
|
||||
|
|
|
@ -91,7 +91,8 @@ typedef struct
|
|||
{
|
||||
const gchar *name;
|
||||
const GstFormat format;
|
||||
} seek_format;
|
||||
}
|
||||
seek_format;
|
||||
|
||||
static seek_format seek_formats[] = {
|
||||
{"tim", GST_FORMAT_TIME},
|
||||
|
|
|
@ -62,6 +62,7 @@ sinesrc_get_type (void)
|
|||
sizeof (SineSrc), 0,
|
||||
(GInstanceInitFunc) sinesrc_init,
|
||||
};
|
||||
|
||||
sinesrc_type = g_type_register_static (GST_TYPE_ELEMENT, "SineSrc",
|
||||
&sinesrc_info, 0);
|
||||
}
|
||||
|
|
|
@ -62,6 +62,7 @@ sinesrc_get_type (void)
|
|||
sizeof (SineSrc), 0,
|
||||
(GInstanceInitFunc) sinesrc_init,
|
||||
};
|
||||
|
||||
sinesrc_type = g_type_register_static (GST_TYPE_ELEMENT, "SineSrc",
|
||||
&sinesrc_info, 0);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue