mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-06-16 13:00:41 +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
84f49e604d
commit
7baa6c18e7
|
@ -1,3 +1,7 @@
|
|||
2004-03-15 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||
|
||||
* *.c,*.h: don't mix tabs and spaces
|
||||
|
||||
2004-03-15 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* gst/schedulers/gstoptimalscheduler.c
|
||||
|
|
|
@ -44,7 +44,8 @@ typedef struct
|
|||
BonoboUIComponent *uic;
|
||||
|
||||
GstPlay *play;
|
||||
} control_data_t;
|
||||
}
|
||||
control_data_t;
|
||||
|
||||
/*
|
||||
* This callback is invoked when the BonoboControl object
|
||||
|
@ -94,7 +95,8 @@ typedef struct
|
|||
{
|
||||
control_data_t *control_data;
|
||||
GtkFileSelection *selector;
|
||||
} file_select_struct;
|
||||
}
|
||||
file_select_struct;
|
||||
|
||||
static void
|
||||
filename_selected (GtkButton * ok, gpointer user_data)
|
||||
|
|
|
@ -15,8 +15,7 @@ main (int argc, char *argv[])
|
|||
return -1;
|
||||
}
|
||||
|
||||
pipeline =
|
||||
(GstElement *)
|
||||
pipeline = (GstElement *)
|
||||
gst_parse_launch ("filesrc name=my_filesrc ! mad ! osssink", &error);
|
||||
if (!pipeline) {
|
||||
fprintf (stderr, "Parse error: %s", error->message);
|
||||
|
|
|
@ -120,6 +120,7 @@ gst_example_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_example_init,
|
||||
};
|
||||
|
||||
example_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstExample", &example_info,
|
||||
0);
|
||||
|
|
|
@ -409,8 +409,7 @@ gst_autoplug_sp (const GstCaps * srccaps, const GstCaps * sinkcaps,
|
|||
|
||||
if ((sinknode->cost >
|
||||
srcnode->cost + gst_autoplug_get_cost (sinknode->fac))
|
||||
&& (templ =
|
||||
gst_autoplug_can_match (srcnode->fac, sinknode->fac))) {
|
||||
&& (templ = gst_autoplug_can_match (srcnode->fac, sinknode->fac))) {
|
||||
/* we got a shorter path
|
||||
* now enter that path to that node */
|
||||
sinknode->prev = srcnode;
|
||||
|
|
|
@ -138,6 +138,7 @@ gst_spider_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_spider_init,
|
||||
};
|
||||
|
||||
spider_type =
|
||||
g_type_register_static (GST_TYPE_BIN, "GstSpider", &spider_info, 0);
|
||||
}
|
||||
|
|
|
@ -109,6 +109,7 @@ gst_spider_identity_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_spider_identity_init,
|
||||
};
|
||||
|
||||
spider_identity_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstSpiderIdentity",
|
||||
&spider_identity_info, 0);
|
||||
|
@ -221,8 +222,7 @@ gst_spider_identity_new_src (gchar * name)
|
|||
GstSpiderIdentity *ret =
|
||||
(GstSpiderIdentity *) gst_element_factory_make ("spideridentity", name);
|
||||
/* set the right functions */
|
||||
gst_element_set_loop_function (GST_ELEMENT (ret),
|
||||
(GstElementLoopFunction)
|
||||
gst_element_set_loop_function (GST_ELEMENT (ret), (GstElementLoopFunction)
|
||||
GST_DEBUG_FUNCPTR (gst_spider_identity_src_loop));
|
||||
|
||||
return ret;
|
||||
|
@ -235,8 +235,7 @@ gst_spider_identity_new_sink (gchar * name)
|
|||
(GstSpiderIdentity *) gst_element_factory_make ("spideridentity", name);
|
||||
|
||||
/* set the right functions */
|
||||
gst_element_set_loop_function (GST_ELEMENT (ret),
|
||||
(GstElementLoopFunction)
|
||||
gst_element_set_loop_function (GST_ELEMENT (ret), (GstElementLoopFunction)
|
||||
GST_DEBUG_FUNCPTR (gst_spider_identity_dumb_loop));
|
||||
|
||||
return ret;
|
||||
|
@ -412,8 +411,7 @@ gst_spider_identity_start_type_finding (GstSpiderIdentity * ident)
|
|||
restart = TRUE;
|
||||
}
|
||||
|
||||
gst_element_set_loop_function (GST_ELEMENT (ident),
|
||||
(GstElementLoopFunction)
|
||||
gst_element_set_loop_function (GST_ELEMENT (ident), (GstElementLoopFunction)
|
||||
GST_DEBUG_FUNCPTR (gst_spider_identity_sink_loop_type_finding));
|
||||
|
||||
if (restart) {
|
||||
|
@ -450,8 +448,7 @@ gst_spider_identity_src_loop (GstSpiderIdentity * ident)
|
|||
|
||||
/* we don't want a loop function if we're plugged */
|
||||
if (ident->sink && GST_PAD_PEER (ident->sink)) {
|
||||
gst_element_set_loop_function (GST_ELEMENT (ident),
|
||||
(GstElementLoopFunction)
|
||||
gst_element_set_loop_function (GST_ELEMENT (ident), (GstElementLoopFunction)
|
||||
GST_DEBUG_FUNCPTR (gst_spider_identity_dumb_loop));
|
||||
gst_spider_identity_dumb_loop (ident);
|
||||
return;
|
||||
|
@ -466,7 +463,8 @@ typedef struct
|
|||
GstBuffer *buffer;
|
||||
guint best_probability;
|
||||
GstCaps *caps;
|
||||
} SpiderTypeFind;
|
||||
}
|
||||
SpiderTypeFind;
|
||||
guint8 *
|
||||
spider_find_peek (gpointer data, gint64 offset, guint size)
|
||||
{
|
||||
|
@ -545,8 +543,7 @@ gst_spider_identity_sink_loop_type_finding (GstSpiderIdentity * ident)
|
|||
|
||||
end:
|
||||
/* remove loop function */
|
||||
gst_element_set_loop_function (GST_ELEMENT (ident),
|
||||
(GstElementLoopFunction)
|
||||
gst_element_set_loop_function (GST_ELEMENT (ident), (GstElementLoopFunction)
|
||||
GST_DEBUG_FUNCPTR (gst_spider_identity_dumb_loop));
|
||||
|
||||
/* push the buffer */
|
||||
|
|
|
@ -69,6 +69,7 @@ gst_aggregator_sched_get_type (void)
|
|||
{AGGREGATOR_CHAIN, "4", "Chain Based"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!aggregator_sched_type) {
|
||||
aggregator_sched_type =
|
||||
g_enum_register_static ("GstAggregatorSched", aggregator_sched);
|
||||
|
|
|
@ -83,6 +83,7 @@ gst_fakesink_state_error_get_type (void)
|
|||
"Fail state change from READY to NULL"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesink_state_error_type) {
|
||||
fakesink_state_error_type =
|
||||
g_enum_register_static ("GstFakeSinkStateError", fakesink_state_error);
|
||||
|
|
|
@ -95,6 +95,7 @@ gst_fakesrc_output_get_type (void)
|
|||
{FAKESRC_GET_ALWAYS_SUCEEDS, "8", "'_get' Always succeeds"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_output_type) {
|
||||
fakesrc_output_type =
|
||||
g_enum_register_static ("GstFakeSrcOutput", fakesrc_output);
|
||||
|
@ -112,6 +113,7 @@ gst_fakesrc_data_get_type (void)
|
|||
{FAKESRC_DATA_SUBBUFFER, "2", "Subbuffer data"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_data_type) {
|
||||
fakesrc_data_type = g_enum_register_static ("GstFakeSrcData", fakesrc_data);
|
||||
}
|
||||
|
@ -130,6 +132,7 @@ gst_fakesrc_sizetype_get_type (void)
|
|||
"Random sized buffers (sizemin <= size <= sizemax)"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_sizetype_type) {
|
||||
fakesrc_sizetype_type =
|
||||
g_enum_register_static ("GstFakeSrcSizeType", fakesrc_sizetype);
|
||||
|
@ -151,6 +154,7 @@ gst_fakesrc_filltype_get_type (void)
|
|||
"Fill buffers with pattern 0x00 -> 0xff that spans buffers"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_filltype_type) {
|
||||
fakesrc_filltype_type =
|
||||
g_enum_register_static ("GstFakeSrcFillType", fakesrc_filltype);
|
||||
|
@ -334,6 +338,7 @@ gst_fakesrc_get_formats (GstPad * pad)
|
|||
GST_FORMAT_DEFAULT,
|
||||
0,
|
||||
};
|
||||
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
@ -347,6 +352,7 @@ gst_fakesrc_get_query_types (GstPad * pad)
|
|||
GST_QUERY_SEGMENT_END,
|
||||
0,
|
||||
};
|
||||
|
||||
return types;
|
||||
}
|
||||
|
||||
|
@ -384,6 +390,7 @@ gst_fakesrc_get_event_mask (GstPad * pad)
|
|||
{GST_EVENT_FLUSH, 0},
|
||||
{0, 0},
|
||||
};
|
||||
|
||||
return masks;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ gst_filesink_get_formats (GstPad * pad)
|
|||
GST_FORMAT_BYTES,
|
||||
0,
|
||||
};
|
||||
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,7 @@ gst_filesink_get_query_types (GstPad * pad)
|
|||
GST_QUERY_POSITION,
|
||||
0
|
||||
};
|
||||
|
||||
return types;
|
||||
}
|
||||
|
||||
|
@ -110,6 +112,7 @@ _do_init (GType filesink_type)
|
|||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
g_type_add_interface_static (filesink_type, GST_TYPE_URI_HANDLER,
|
||||
&urihandler_info);
|
||||
GST_DEBUG_CATEGORY_INIT (gst_filesink_debug, "filesink", 0,
|
||||
|
@ -477,6 +480,7 @@ static gchar **
|
|||
gst_filesink_uri_get_protocols (void)
|
||||
{
|
||||
static gchar *protocols[] = { "file", NULL };
|
||||
|
||||
return protocols;
|
||||
}
|
||||
static const gchar *
|
||||
|
|
|
@ -112,6 +112,7 @@ gst_filesrc_get_event_mask (GstPad * pad)
|
|||
{GST_EVENT_SIZE, 0},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
return masks;
|
||||
}
|
||||
|
||||
|
@ -123,6 +124,7 @@ gst_filesrc_get_query_types (GstPad * pad)
|
|||
GST_QUERY_POSITION,
|
||||
0
|
||||
};
|
||||
|
||||
return types;
|
||||
}
|
||||
|
||||
|
@ -133,6 +135,7 @@ gst_filesrc_get_formats (GstPad * pad)
|
|||
GST_FORMAT_BYTES,
|
||||
0,
|
||||
};
|
||||
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
@ -162,6 +165,7 @@ _do_init (GType filesrc_type)
|
|||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
g_type_add_interface_static (filesrc_type, GST_TYPE_URI_HANDLER,
|
||||
&urihandler_info);
|
||||
GST_DEBUG_CATEGORY_INIT (gst_filesrc_debug, "filesrc", 0, "filesrc element");
|
||||
|
@ -923,6 +927,7 @@ static gchar **
|
|||
gst_filesrc_uri_get_protocols (void)
|
||||
{
|
||||
static gchar *protocols[] = { "file", NULL };
|
||||
|
||||
return protocols;
|
||||
}
|
||||
static const gchar *
|
||||
|
|
|
@ -58,7 +58,8 @@ typedef struct
|
|||
GstPad *sinkpad;
|
||||
GstPad *srcpad;
|
||||
GstBuffer *buffer;
|
||||
} GstShaperConnection;
|
||||
}
|
||||
GstShaperConnection;
|
||||
|
||||
GstStaticPadTemplate shaper_src_template = GST_STATIC_PAD_TEMPLATE ("src%d",
|
||||
GST_PAD_SRC,
|
||||
|
@ -80,6 +81,7 @@ gst_shaper_policy_get_type (void)
|
|||
{SHAPER_POLICY_BUFFERSIZE, "2", "sync on buffer size"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!shaper_policy_type) {
|
||||
shaper_policy_type =
|
||||
g_enum_register_static ("GstShaperPolicy", shaper_policy);
|
||||
|
|
|
@ -290,7 +290,8 @@ typedef struct
|
|||
|
||||
GList *buffers;
|
||||
GstTypeFindElement *self;
|
||||
} TypeFindEntry;
|
||||
}
|
||||
TypeFindEntry;
|
||||
|
||||
static inline TypeFindEntry *
|
||||
new_entry (void)
|
||||
|
|
|
@ -680,7 +680,8 @@ typedef struct
|
|||
GstStructure *dest;
|
||||
const GstStructure *intersect;
|
||||
gboolean first_run;
|
||||
} IntersectData;
|
||||
}
|
||||
IntersectData;
|
||||
|
||||
static gboolean
|
||||
gst_caps_structure_intersect_field (GQuark id, GValue * val1, gpointer data)
|
||||
|
@ -862,7 +863,8 @@ typedef struct _NormalizeForeach
|
|||
{
|
||||
GstCaps *caps;
|
||||
GstStructure *structure;
|
||||
} NormalizeForeach;
|
||||
}
|
||||
NormalizeForeach;
|
||||
|
||||
static gboolean
|
||||
gst_caps_normalize_foreach (GQuark field_id, GValue * value, gpointer ptr)
|
||||
|
|
|
@ -346,6 +346,7 @@ gst_clock_get_type (void)
|
|||
(GInstanceInitFunc) gst_clock_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
clock_type = g_type_register_static (GST_TYPE_OBJECT, "GstClock",
|
||||
&clock_info, G_TYPE_FLAG_ABSTRACT);
|
||||
}
|
||||
|
|
|
@ -103,6 +103,7 @@ gst_element_get_type (void)
|
|||
(GInstanceInitFunc) gst_element_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
_gst_element_type = g_type_register_static (GST_TYPE_OBJECT, "GstElement",
|
||||
&element_info, G_TYPE_FLAG_ABSTRACT);
|
||||
}
|
||||
|
@ -260,7 +261,8 @@ typedef struct
|
|||
{
|
||||
const GParamSpec *pspec;
|
||||
GValue value;
|
||||
} prop_value_t;
|
||||
}
|
||||
prop_value_t;
|
||||
|
||||
static void
|
||||
element_set_property (GstElement * element, const GParamSpec * pspec,
|
||||
|
|
|
@ -58,6 +58,7 @@ gst_element_factory_get_type (void)
|
|||
(GInstanceInitFunc) gst_element_factory_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
elementfactory_type = g_type_register_static (GST_TYPE_PLUGIN_FEATURE,
|
||||
"GstElementFactory", &elementfactory_info, 0);
|
||||
GST_DEBUG_CATEGORY_INIT (element_factory_debug, "GST_ELEMENT_FACTORY",
|
||||
|
|
|
@ -66,7 +66,8 @@ typedef struct
|
|||
GstIndexResolverMethod method;
|
||||
GstIndexResolver resolver;
|
||||
gpointer user_data;
|
||||
} ResolverEntry;
|
||||
}
|
||||
ResolverEntry;
|
||||
|
||||
static const ResolverEntry resolvers[] = {
|
||||
{GST_INDEX_RESOLVER_CUSTOM, NULL, NULL},
|
||||
|
@ -88,6 +89,7 @@ gst_index_resolver_get_type (void)
|
|||
"Resolve an object to its path in the pipeline"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!index_resolver_type) {
|
||||
index_resolver_type =
|
||||
g_enum_register_static ("GstIndexResolver", index_resolver);
|
||||
|
@ -127,6 +129,7 @@ gst_index_get_type (void)
|
|||
(GInstanceInitFunc) gst_index_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
index_type =
|
||||
g_type_register_static (GST_TYPE_OBJECT, "GstIndex", &index_info, 0);
|
||||
}
|
||||
|
@ -860,6 +863,7 @@ gst_index_factory_get_type (void)
|
|||
(GInstanceInitFunc) gst_index_factory_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
indexfactory_type = g_type_register_static (GST_TYPE_PLUGIN_FEATURE,
|
||||
"GstIndexFactory", &indexfactory_info, 0);
|
||||
}
|
||||
|
|
|
@ -58,7 +58,8 @@ typedef struct DL_INFO
|
|||
int dli_version;
|
||||
int dli_reserved1;
|
||||
long dli_reserved[4];
|
||||
} Dl_info;
|
||||
}
|
||||
Dl_info;
|
||||
|
||||
#define _RLD_DLADDR 14
|
||||
int dladdr (void *address, Dl_info * dl);
|
||||
|
@ -100,7 +101,8 @@ typedef struct
|
|||
{
|
||||
GPatternSpec *pat;
|
||||
GstDebugLevel level;
|
||||
} LevelNameEntry;
|
||||
}
|
||||
LevelNameEntry;
|
||||
|
||||
/* list of all categories */
|
||||
static GStaticMutex __cat_mutex = G_STATIC_MUTEX_INIT;
|
||||
|
@ -111,7 +113,8 @@ typedef struct
|
|||
{
|
||||
GstLogFunction func;
|
||||
gpointer user_data;
|
||||
} LogFuncEntry;
|
||||
}
|
||||
LogFuncEntry;
|
||||
static GStaticMutex __log_func_mutex = G_STATIC_MUTEX_INIT;
|
||||
static GSList *__log_functions = NULL;
|
||||
|
||||
|
|
|
@ -113,6 +113,7 @@ gst_object_get_type (void)
|
|||
(GInstanceInitFunc) gst_object_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
_gst_object_type =
|
||||
g_type_register_static (G_TYPE_OBJECT, "GstObject", &object_info,
|
||||
G_TYPE_FLAG_ABSTRACT);
|
||||
|
@ -806,6 +807,7 @@ gst_signal_object_get_type (void)
|
|||
(GInstanceInitFunc) gst_signal_object_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
signal_object_type =
|
||||
g_type_register_static (G_TYPE_OBJECT, "GstSignalObject",
|
||||
&signal_object_info, 0);
|
||||
|
|
10
gst/gstpad.c
10
gst/gstpad.c
|
@ -77,6 +77,7 @@ gst_pad_get_type (void)
|
|||
32,
|
||||
(GInstanceInitFunc) gst_pad_init, NULL
|
||||
};
|
||||
|
||||
_gst_pad_type = g_type_register_static (GST_TYPE_OBJECT, "GstPad",
|
||||
&pad_info, 0);
|
||||
}
|
||||
|
@ -158,6 +159,7 @@ gst_real_pad_get_type (void)
|
|||
32,
|
||||
(GInstanceInitFunc) gst_real_pad_init, NULL
|
||||
};
|
||||
|
||||
_gst_real_pad_type = g_type_register_static (GST_TYPE_PAD, "GstRealPad",
|
||||
&pad_info, 0);
|
||||
}
|
||||
|
@ -3199,6 +3201,7 @@ gst_pad_template_get_type (void)
|
|||
32,
|
||||
(GInstanceInitFunc) gst_pad_template_init, NULL
|
||||
};
|
||||
|
||||
padtemplate_type =
|
||||
g_type_register_static (GST_TYPE_OBJECT, "GstPadTemplate",
|
||||
&padtemplate_info, 0);
|
||||
|
@ -3438,6 +3441,7 @@ gst_ghost_pad_get_type (void)
|
|||
(GInstanceInitFunc) gst_ghost_pad_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
_gst_ghost_pad_type = g_type_register_static (GST_TYPE_PAD, "GstGhostPad",
|
||||
&pad_info, 0);
|
||||
}
|
||||
|
@ -3794,7 +3798,8 @@ typedef struct
|
|||
gint64 src_value;
|
||||
GstFormat *dest_format;
|
||||
gint64 *dest_value;
|
||||
} GstPadConvertData;
|
||||
}
|
||||
GstPadConvertData;
|
||||
|
||||
static gboolean
|
||||
gst_pad_convert_dispatcher (GstPad * pad, GstPadConvertData * data)
|
||||
|
@ -3881,7 +3886,8 @@ typedef struct
|
|||
GstQueryType type;
|
||||
GstFormat *format;
|
||||
gint64 *value;
|
||||
} GstPadQueryData;
|
||||
}
|
||||
GstPadQueryData;
|
||||
|
||||
static gboolean
|
||||
gst_pad_query_dispatcher (GstPad * pad, GstPadQueryData * data)
|
||||
|
|
|
@ -76,6 +76,7 @@ gst_pipeline_get_type (void)
|
|||
gst_pipeline_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
pipeline_type =
|
||||
g_type_register_static (GST_TYPE_BIN, "GstPipeline", &pipeline_info, 0);
|
||||
}
|
||||
|
|
|
@ -54,6 +54,7 @@ gst_plugin_feature_get_type (void)
|
|||
(GInstanceInitFunc) gst_plugin_feature_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
plugin_feature_type =
|
||||
g_type_register_static (G_TYPE_OBJECT, "GstPluginFeature",
|
||||
&plugin_feature_info, G_TYPE_FLAG_ABSTRACT);
|
||||
|
|
|
@ -69,7 +69,8 @@ typedef struct _GstQueueEventResponse
|
|||
{
|
||||
GstEvent *event;
|
||||
gboolean ret, handled;
|
||||
} GstQueueEventResponse;
|
||||
}
|
||||
GstQueueEventResponse;
|
||||
|
||||
static void gst_queue_base_init (GstQueueClass * klass);
|
||||
static void gst_queue_class_init (GstQueueClass * klass);
|
||||
|
@ -106,6 +107,7 @@ queue_leaky_get_type (void)
|
|||
{GST_QUEUE_LEAK_DOWNSTREAM, "2", "Leaky on Downstream"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!queue_leaky_type) {
|
||||
queue_leaky_type = g_enum_register_static ("GstQueueLeaky", queue_leaky);
|
||||
}
|
||||
|
|
|
@ -306,8 +306,7 @@ gst_registry_pool_find_feature (const gchar * name, GType type)
|
|||
data.type = type;
|
||||
data.name = name;
|
||||
|
||||
walk =
|
||||
gst_registry_pool_feature_filter ((GstPluginFeatureFilter)
|
||||
walk = gst_registry_pool_feature_filter ((GstPluginFeatureFilter)
|
||||
gst_plugin_feature_type_name_filter, TRUE, &data);
|
||||
|
||||
if (walk)
|
||||
|
|
|
@ -764,6 +764,7 @@ gst_scheduler_factory_get_type (void)
|
|||
(GInstanceInitFunc) gst_scheduler_factory_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
schedulerfactory_type = g_type_register_static (GST_TYPE_PLUGIN_FEATURE,
|
||||
"GstSchedulerFactory", &schedulerfactory_info, 0);
|
||||
}
|
||||
|
|
|
@ -951,7 +951,8 @@ typedef struct _GstStructureAbbreviation
|
|||
{
|
||||
char *type_name;
|
||||
GType type;
|
||||
} GstStructureAbbreviation;
|
||||
}
|
||||
GstStructureAbbreviation;
|
||||
|
||||
static GstStructureAbbreviation gst_structure_abbrs[] = {
|
||||
{"int", G_TYPE_INT},
|
||||
|
|
|
@ -63,6 +63,7 @@ gst_system_clock_get_type (void)
|
|||
(GInstanceInitFunc) gst_system_clock_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
clock_type = g_type_register_static (GST_TYPE_CLOCK, "GstSystemClock",
|
||||
&clock_info, 0);
|
||||
}
|
||||
|
|
11
gst/gsttag.c
11
gst/gsttag.c
|
@ -43,7 +43,8 @@ typedef struct
|
|||
|
||||
GstTagMergeFunc merge_func; /* functions to merge the values */
|
||||
GstTagFlag flag; /* type of tag */
|
||||
} GstTagInfo;
|
||||
}
|
||||
GstTagInfo;
|
||||
|
||||
#define TAGLIST "taglist"
|
||||
static GQuark gst_tag_list_quark;
|
||||
|
@ -439,7 +440,8 @@ typedef struct
|
|||
{
|
||||
GstStructure *list;
|
||||
GstTagMergeMode mode;
|
||||
} GstTagCopyData;
|
||||
}
|
||||
GstTagCopyData;
|
||||
static void
|
||||
gst_tag_list_add_value_internal (GstStructure * list, GstTagMergeMode mode,
|
||||
GQuark tag, GValue * value)
|
||||
|
@ -452,6 +454,7 @@ gst_tag_list_add_value_internal (GstStructure * list, GstTagMergeMode mode,
|
|||
if (info->merge_func
|
||||
&& (value2 = gst_structure_id_get_value (list, tag)) != NULL) {
|
||||
GValue dest = { 0, };
|
||||
|
||||
switch (mode) {
|
||||
case GST_TAG_MERGE_REPLACE_ALL:
|
||||
case GST_TAG_MERGE_REPLACE:
|
||||
|
@ -690,6 +693,7 @@ gst_tag_list_add_valist (GstTagList * list, GstTagMergeMode mode,
|
|||
|
||||
while (tag != NULL) {
|
||||
GValue value = { 0, };
|
||||
|
||||
quark = g_quark_from_string (tag);
|
||||
info = gst_tag_lookup (quark);
|
||||
if (info == NULL)
|
||||
|
@ -761,7 +765,8 @@ typedef struct
|
|||
GstTagForeachFunc func;
|
||||
GstTagList *tag_list;
|
||||
gpointer data;
|
||||
} TagForeachData;
|
||||
}
|
||||
TagForeachData;
|
||||
static int
|
||||
structure_foreach_wrapper (GQuark field_id, GValue * value, gpointer user_data)
|
||||
{
|
||||
|
|
|
@ -37,7 +37,8 @@ typedef struct
|
|||
{
|
||||
GstTagMergeMode mode;
|
||||
GstTagList *list;
|
||||
} GstTagData;
|
||||
}
|
||||
GstTagData;
|
||||
|
||||
GType
|
||||
gst_tag_setter_get_type (void)
|
||||
|
|
|
@ -43,7 +43,8 @@ typedef struct
|
|||
|
||||
GstTagMergeFunc merge_func; /* functions to merge the values */
|
||||
GstTagFlag flag; /* type of tag */
|
||||
} GstTagInfo;
|
||||
}
|
||||
GstTagInfo;
|
||||
|
||||
#define TAGLIST "taglist"
|
||||
static GQuark gst_tag_list_quark;
|
||||
|
@ -439,7 +440,8 @@ typedef struct
|
|||
{
|
||||
GstStructure *list;
|
||||
GstTagMergeMode mode;
|
||||
} GstTagCopyData;
|
||||
}
|
||||
GstTagCopyData;
|
||||
static void
|
||||
gst_tag_list_add_value_internal (GstStructure * list, GstTagMergeMode mode,
|
||||
GQuark tag, GValue * value)
|
||||
|
@ -452,6 +454,7 @@ gst_tag_list_add_value_internal (GstStructure * list, GstTagMergeMode mode,
|
|||
if (info->merge_func
|
||||
&& (value2 = gst_structure_id_get_value (list, tag)) != NULL) {
|
||||
GValue dest = { 0, };
|
||||
|
||||
switch (mode) {
|
||||
case GST_TAG_MERGE_REPLACE_ALL:
|
||||
case GST_TAG_MERGE_REPLACE:
|
||||
|
@ -690,6 +693,7 @@ gst_tag_list_add_valist (GstTagList * list, GstTagMergeMode mode,
|
|||
|
||||
while (tag != NULL) {
|
||||
GValue value = { 0, };
|
||||
|
||||
quark = g_quark_from_string (tag);
|
||||
info = gst_tag_lookup (quark);
|
||||
if (info == NULL)
|
||||
|
@ -761,7 +765,8 @@ typedef struct
|
|||
GstTagForeachFunc func;
|
||||
GstTagList *tag_list;
|
||||
gpointer data;
|
||||
} TagForeachData;
|
||||
}
|
||||
TagForeachData;
|
||||
static int
|
||||
structure_foreach_wrapper (GQuark field_id, GValue * value, gpointer user_data)
|
||||
{
|
||||
|
|
|
@ -37,7 +37,8 @@ typedef struct
|
|||
{
|
||||
GstTagMergeMode mode;
|
||||
GstTagList *list;
|
||||
} GstTagData;
|
||||
}
|
||||
GstTagData;
|
||||
|
||||
GType
|
||||
gst_tag_setter_get_type (void)
|
||||
|
|
|
@ -98,6 +98,7 @@ gst_thread_priority_get_type (void)
|
|||
{G_THREAD_PRIORITY_URGENT, "URGENT", "Urgent Scheduling"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!thread_priority_type) {
|
||||
thread_priority_type =
|
||||
g_enum_register_static ("GstThreadPriority", thread_priority);
|
||||
|
@ -127,6 +128,7 @@ gst_thread_get_type (void)
|
|||
gst_thread_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
thread_type = g_type_register_static (GST_TYPE_BIN, "GstThread",
|
||||
&thread_info, 0);
|
||||
}
|
||||
|
|
|
@ -138,7 +138,7 @@ gst_thread_equal_dummy_impl (gpointer thread1, gpointer thread2)
|
|||
}
|
||||
|
||||
GThreadFunctions gst_thread_dummy_functions = {
|
||||
gst_mutex_new_dummy_impl,
|
||||
gst_mutex_new_dummy_impl,
|
||||
(void (*)(GMutex *)) gst_mutex_dummy_impl,
|
||||
gst_mutex_trylock_dummy_impl,
|
||||
(void (*)(GMutex *)) gst_mutex_dummy_impl,
|
||||
|
@ -157,4 +157,5 @@ gst_mutex_new_dummy_impl,
|
|||
gst_thread_dummy_impl_1,
|
||||
gst_thread_dummy_impl,
|
||||
gst_thread_set_priority_dummy_impl,
|
||||
gst_thread_dummy_impl_1, gst_thread_equal_dummy_impl};
|
||||
gst_thread_dummy_impl_1, gst_thread_equal_dummy_impl
|
||||
};
|
||||
|
|
|
@ -56,6 +56,7 @@ gst_type_find_factory_get_type (void)
|
|||
gst_type_find_factory_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
typefind_type = g_type_register_static (GST_TYPE_PLUGIN_FEATURE,
|
||||
"GstTypeFindFactory", &typefind_info, 0);
|
||||
GST_DEBUG_CATEGORY_INIT (gst_type_find_debug, "GST_TYPEFIND",
|
||||
|
|
|
@ -54,6 +54,7 @@ gst_uri_handler_get_type (void)
|
|||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
urihandler_type = g_type_register_static (G_TYPE_INTERFACE,
|
||||
"GstURIHandler", &urihandler_info, 0);
|
||||
|
||||
|
@ -200,7 +201,8 @@ typedef struct
|
|||
{
|
||||
GstURIType type;
|
||||
gchar *protocol;
|
||||
} SearchEntry;
|
||||
}
|
||||
SearchEntry;
|
||||
static gboolean
|
||||
search_by_entry (GstPluginFeature * feature, gpointer search_entry)
|
||||
{
|
||||
|
|
|
@ -1357,6 +1357,7 @@ _gst_value_initialize (void)
|
|||
NULL,
|
||||
NULL,
|
||||
};
|
||||
|
||||
//const GTypeFundamentalInfo finfo = { G_TYPE_FLAG_DERIVABLE, };
|
||||
|
||||
gst_value_table = g_array_new (FALSE, FALSE, sizeof (GstValueTable));
|
||||
|
@ -1382,6 +1383,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_fourcc,
|
||||
gst_value_deserialize_fourcc,
|
||||
};
|
||||
|
||||
info.value_table = &value_table;
|
||||
gst_type_fourcc =
|
||||
g_type_register_static (G_TYPE_BOXED, "GstFourcc", &info, 0);
|
||||
|
@ -1406,6 +1408,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_int_range,
|
||||
gst_value_deserialize_int_range,
|
||||
};
|
||||
|
||||
info.value_table = &value_table;
|
||||
gst_type_int_range =
|
||||
g_type_register_static (G_TYPE_BOXED, "GstIntRange", &info, 0);
|
||||
|
@ -1430,6 +1433,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_double_range,
|
||||
gst_value_deserialize_double_range,
|
||||
};
|
||||
|
||||
info.value_table = &value_table;
|
||||
gst_type_double_range =
|
||||
g_type_register_static (G_TYPE_BOXED, "GstDoubleRange", &info, 0);
|
||||
|
@ -1454,6 +1458,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_list,
|
||||
gst_value_deserialize_list,
|
||||
};
|
||||
|
||||
info.value_table = &value_table;
|
||||
gst_type_list =
|
||||
g_type_register_static (G_TYPE_BOXED, "GstValueList", &info, 0);
|
||||
|
@ -1468,6 +1473,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_int,
|
||||
gst_value_deserialize_int,
|
||||
};
|
||||
|
||||
gst_value_register (&gst_value);
|
||||
}
|
||||
|
||||
|
@ -1478,6 +1484,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_double,
|
||||
gst_value_deserialize_double,
|
||||
};
|
||||
|
||||
gst_value_register (&gst_value);
|
||||
}
|
||||
|
||||
|
@ -1488,6 +1495,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_string,
|
||||
gst_value_deserialize_string,
|
||||
};
|
||||
|
||||
gst_value_register (&gst_value);
|
||||
}
|
||||
|
||||
|
@ -1498,6 +1506,7 @@ _gst_value_initialize (void)
|
|||
gst_value_serialize_boolean,
|
||||
gst_value_deserialize_boolean,
|
||||
};
|
||||
|
||||
gst_value_register (&gst_value);
|
||||
}
|
||||
|
||||
|
|
|
@ -60,6 +60,7 @@ gst_xml_get_type (void)
|
|||
(GInstanceInitFunc) gst_xml_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
xml_type = g_type_register_static (GST_TYPE_OBJECT, "GstXML", &xml_info, 0);
|
||||
}
|
||||
return xml_type;
|
||||
|
|
|
@ -78,7 +78,8 @@ typedef struct
|
|||
gint nformats;
|
||||
GstFormat *format;
|
||||
GArray *array;
|
||||
} GstFileIndexId;
|
||||
}
|
||||
GstFileIndexId;
|
||||
|
||||
typedef struct _GstFileIndex GstFileIndex;
|
||||
typedef struct _GstFileIndexClass GstFileIndexClass;
|
||||
|
@ -164,6 +165,7 @@ gst_file_index_get_type (void)
|
|||
(GInstanceInitFunc) gst_file_index_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
file_index_type =
|
||||
g_type_register_static (GST_TYPE_INDEX, "GstFileIndex",
|
||||
&file_index_info, 0);
|
||||
|
|
|
@ -66,13 +66,15 @@ typedef struct
|
|||
GstFormat format;
|
||||
gint offset;
|
||||
GTree *tree;
|
||||
} GstMemIndexFormatIndex;
|
||||
}
|
||||
GstMemIndexFormatIndex;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
gint id;
|
||||
GHashTable *format_index;
|
||||
} GstMemIndexId;
|
||||
}
|
||||
GstMemIndexId;
|
||||
|
||||
typedef struct _GstMemIndex GstMemIndex;
|
||||
typedef struct _GstMemIndexClass GstMemIndexClass;
|
||||
|
@ -136,6 +138,7 @@ gst_mem_index_get_type (void)
|
|||
(GInstanceInitFunc) gst_mem_index_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
mem_index_type =
|
||||
g_type_register_static (GST_TYPE_INDEX, "GstMemIndex", &mem_index_info,
|
||||
0);
|
||||
|
@ -293,7 +296,8 @@ typedef struct
|
|||
gint64 low_diff;
|
||||
GstIndexEntry *higher;
|
||||
gint64 high_diff;
|
||||
} GstMemIndexSearchData;
|
||||
}
|
||||
GstMemIndexSearchData;
|
||||
|
||||
static gint
|
||||
mem_index_search (gconstpointer a, gconstpointer b)
|
||||
|
|
|
@ -83,13 +83,15 @@ typedef enum
|
|||
GST_BASIC_SCHEDULER_STATE_STOPPED,
|
||||
GST_BASIC_SCHEDULER_STATE_ERROR,
|
||||
GST_BASIC_SCHEDULER_STATE_RUNNING,
|
||||
} GstBasicSchedulerState;
|
||||
}
|
||||
GstBasicSchedulerState;
|
||||
|
||||
typedef enum
|
||||
{
|
||||
/* something important has changed inside the scheduler */
|
||||
GST_BASIC_SCHEDULER_CHANGE = GST_SCHEDULER_FLAG_LAST,
|
||||
} GstBasicSchedulerFlags;
|
||||
}
|
||||
GstBasicSchedulerFlags;
|
||||
|
||||
struct _GstBasicScheduler
|
||||
{
|
||||
|
|
|
@ -75,6 +75,7 @@ gst_dparam_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_dparam_init,
|
||||
};
|
||||
|
||||
dparam_type =
|
||||
g_type_register_static (GST_TYPE_OBJECT, "GstDParam", &dparam_info, 0);
|
||||
}
|
||||
|
|
|
@ -73,6 +73,7 @@ gst_dpsmooth_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_dpsmooth_init,
|
||||
};
|
||||
|
||||
dpsmooth_type =
|
||||
g_type_register_static (GST_TYPE_DPARAM, "GstDParamSmooth",
|
||||
&dpsmooth_info, 0);
|
||||
|
|
|
@ -92,6 +92,7 @@ gst_dpman_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_dpman_init,
|
||||
};
|
||||
|
||||
dpman_type =
|
||||
g_type_register_static (GST_TYPE_OBJECT, "GstDParamManager",
|
||||
&dpman_info, 0);
|
||||
|
|
|
@ -42,6 +42,7 @@ gst_dp_linint_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_dp_linint_init,
|
||||
};
|
||||
|
||||
dp_linint_type =
|
||||
g_type_register_static (GST_TYPE_DPARAM, "GstDParamLinInterp",
|
||||
&dp_linint_info, 0);
|
||||
|
|
|
@ -65,6 +65,7 @@ gst_unitconv_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_unitconv_init,
|
||||
};
|
||||
|
||||
unitconv_type =
|
||||
g_type_register_static (GST_TYPE_OBJECT, "GstUnitConvert",
|
||||
&unitconv_info, 0);
|
||||
|
|
|
@ -69,6 +69,7 @@ gst_aggregator_sched_get_type (void)
|
|||
{AGGREGATOR_CHAIN, "4", "Chain Based"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!aggregator_sched_type) {
|
||||
aggregator_sched_type =
|
||||
g_enum_register_static ("GstAggregatorSched", aggregator_sched);
|
||||
|
|
|
@ -83,6 +83,7 @@ gst_fakesink_state_error_get_type (void)
|
|||
"Fail state change from READY to NULL"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesink_state_error_type) {
|
||||
fakesink_state_error_type =
|
||||
g_enum_register_static ("GstFakeSinkStateError", fakesink_state_error);
|
||||
|
|
|
@ -95,6 +95,7 @@ gst_fakesrc_output_get_type (void)
|
|||
{FAKESRC_GET_ALWAYS_SUCEEDS, "8", "'_get' Always succeeds"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_output_type) {
|
||||
fakesrc_output_type =
|
||||
g_enum_register_static ("GstFakeSrcOutput", fakesrc_output);
|
||||
|
@ -112,6 +113,7 @@ gst_fakesrc_data_get_type (void)
|
|||
{FAKESRC_DATA_SUBBUFFER, "2", "Subbuffer data"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_data_type) {
|
||||
fakesrc_data_type = g_enum_register_static ("GstFakeSrcData", fakesrc_data);
|
||||
}
|
||||
|
@ -130,6 +132,7 @@ gst_fakesrc_sizetype_get_type (void)
|
|||
"Random sized buffers (sizemin <= size <= sizemax)"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_sizetype_type) {
|
||||
fakesrc_sizetype_type =
|
||||
g_enum_register_static ("GstFakeSrcSizeType", fakesrc_sizetype);
|
||||
|
@ -151,6 +154,7 @@ gst_fakesrc_filltype_get_type (void)
|
|||
"Fill buffers with pattern 0x00 -> 0xff that spans buffers"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!fakesrc_filltype_type) {
|
||||
fakesrc_filltype_type =
|
||||
g_enum_register_static ("GstFakeSrcFillType", fakesrc_filltype);
|
||||
|
@ -334,6 +338,7 @@ gst_fakesrc_get_formats (GstPad * pad)
|
|||
GST_FORMAT_DEFAULT,
|
||||
0,
|
||||
};
|
||||
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
@ -347,6 +352,7 @@ gst_fakesrc_get_query_types (GstPad * pad)
|
|||
GST_QUERY_SEGMENT_END,
|
||||
0,
|
||||
};
|
||||
|
||||
return types;
|
||||
}
|
||||
|
||||
|
@ -384,6 +390,7 @@ gst_fakesrc_get_event_mask (GstPad * pad)
|
|||
{GST_EVENT_FLUSH, 0},
|
||||
{0, 0},
|
||||
};
|
||||
|
||||
return masks;
|
||||
}
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ gst_filesink_get_formats (GstPad * pad)
|
|||
GST_FORMAT_BYTES,
|
||||
0,
|
||||
};
|
||||
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
@ -77,6 +78,7 @@ gst_filesink_get_query_types (GstPad * pad)
|
|||
GST_QUERY_POSITION,
|
||||
0
|
||||
};
|
||||
|
||||
return types;
|
||||
}
|
||||
|
||||
|
@ -110,6 +112,7 @@ _do_init (GType filesink_type)
|
|||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
g_type_add_interface_static (filesink_type, GST_TYPE_URI_HANDLER,
|
||||
&urihandler_info);
|
||||
GST_DEBUG_CATEGORY_INIT (gst_filesink_debug, "filesink", 0,
|
||||
|
@ -477,6 +480,7 @@ static gchar **
|
|||
gst_filesink_uri_get_protocols (void)
|
||||
{
|
||||
static gchar *protocols[] = { "file", NULL };
|
||||
|
||||
return protocols;
|
||||
}
|
||||
static const gchar *
|
||||
|
|
|
@ -112,6 +112,7 @@ gst_filesrc_get_event_mask (GstPad * pad)
|
|||
{GST_EVENT_SIZE, 0},
|
||||
{0, 0}
|
||||
};
|
||||
|
||||
return masks;
|
||||
}
|
||||
|
||||
|
@ -123,6 +124,7 @@ gst_filesrc_get_query_types (GstPad * pad)
|
|||
GST_QUERY_POSITION,
|
||||
0
|
||||
};
|
||||
|
||||
return types;
|
||||
}
|
||||
|
||||
|
@ -133,6 +135,7 @@ gst_filesrc_get_formats (GstPad * pad)
|
|||
GST_FORMAT_BYTES,
|
||||
0,
|
||||
};
|
||||
|
||||
return formats;
|
||||
}
|
||||
|
||||
|
@ -162,6 +165,7 @@ _do_init (GType filesrc_type)
|
|||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
g_type_add_interface_static (filesrc_type, GST_TYPE_URI_HANDLER,
|
||||
&urihandler_info);
|
||||
GST_DEBUG_CATEGORY_INIT (gst_filesrc_debug, "filesrc", 0, "filesrc element");
|
||||
|
@ -923,6 +927,7 @@ static gchar **
|
|||
gst_filesrc_uri_get_protocols (void)
|
||||
{
|
||||
static gchar *protocols[] = { "file", NULL };
|
||||
|
||||
return protocols;
|
||||
}
|
||||
static const gchar *
|
||||
|
|
|
@ -69,7 +69,8 @@ typedef struct _GstQueueEventResponse
|
|||
{
|
||||
GstEvent *event;
|
||||
gboolean ret, handled;
|
||||
} GstQueueEventResponse;
|
||||
}
|
||||
GstQueueEventResponse;
|
||||
|
||||
static void gst_queue_base_init (GstQueueClass * klass);
|
||||
static void gst_queue_class_init (GstQueueClass * klass);
|
||||
|
@ -106,6 +107,7 @@ queue_leaky_get_type (void)
|
|||
{GST_QUEUE_LEAK_DOWNSTREAM, "2", "Leaky on Downstream"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!queue_leaky_type) {
|
||||
queue_leaky_type = g_enum_register_static ("GstQueueLeaky", queue_leaky);
|
||||
}
|
||||
|
|
|
@ -58,7 +58,8 @@ typedef struct
|
|||
GstPad *sinkpad;
|
||||
GstPad *srcpad;
|
||||
GstBuffer *buffer;
|
||||
} GstShaperConnection;
|
||||
}
|
||||
GstShaperConnection;
|
||||
|
||||
GstStaticPadTemplate shaper_src_template = GST_STATIC_PAD_TEMPLATE ("src%d",
|
||||
GST_PAD_SRC,
|
||||
|
@ -80,6 +81,7 @@ gst_shaper_policy_get_type (void)
|
|||
{SHAPER_POLICY_BUFFERSIZE, "2", "sync on buffer size"},
|
||||
{0, NULL, NULL},
|
||||
};
|
||||
|
||||
if (!shaper_policy_type) {
|
||||
shaper_policy_type =
|
||||
g_enum_register_static ("GstShaperPolicy", shaper_policy);
|
||||
|
|
|
@ -290,7 +290,8 @@ typedef struct
|
|||
|
||||
GList *buffers;
|
||||
GstTypeFindElement *self;
|
||||
} TypeFindEntry;
|
||||
}
|
||||
TypeFindEntry;
|
||||
|
||||
static inline TypeFindEntry *
|
||||
new_entry (void)
|
||||
|
|
|
@ -78,7 +78,8 @@ typedef struct
|
|||
gint nformats;
|
||||
GstFormat *format;
|
||||
GArray *array;
|
||||
} GstFileIndexId;
|
||||
}
|
||||
GstFileIndexId;
|
||||
|
||||
typedef struct _GstFileIndex GstFileIndex;
|
||||
typedef struct _GstFileIndexClass GstFileIndexClass;
|
||||
|
@ -164,6 +165,7 @@ gst_file_index_get_type (void)
|
|||
(GInstanceInitFunc) gst_file_index_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
file_index_type =
|
||||
g_type_register_static (GST_TYPE_INDEX, "GstFileIndex",
|
||||
&file_index_info, 0);
|
||||
|
|
|
@ -66,13 +66,15 @@ typedef struct
|
|||
GstFormat format;
|
||||
gint offset;
|
||||
GTree *tree;
|
||||
} GstMemIndexFormatIndex;
|
||||
}
|
||||
GstMemIndexFormatIndex;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
gint id;
|
||||
GHashTable *format_index;
|
||||
} GstMemIndexId;
|
||||
}
|
||||
GstMemIndexId;
|
||||
|
||||
typedef struct _GstMemIndex GstMemIndex;
|
||||
typedef struct _GstMemIndexClass GstMemIndexClass;
|
||||
|
@ -136,6 +138,7 @@ gst_mem_index_get_type (void)
|
|||
(GInstanceInitFunc) gst_mem_index_init,
|
||||
NULL
|
||||
};
|
||||
|
||||
mem_index_type =
|
||||
g_type_register_static (GST_TYPE_INDEX, "GstMemIndex", &mem_index_info,
|
||||
0);
|
||||
|
@ -293,7 +296,8 @@ typedef struct
|
|||
gint64 low_diff;
|
||||
GstIndexEntry *higher;
|
||||
gint64 high_diff;
|
||||
} GstMemIndexSearchData;
|
||||
}
|
||||
GstMemIndexSearchData;
|
||||
|
||||
static gint
|
||||
mem_index_search (gconstpointer a, gconstpointer b)
|
||||
|
|
|
@ -170,8 +170,8 @@ gst_mem_pool_free (GstMemPool * mem_pool, gpointer mem)
|
|||
__asm__ __volatile__ ("1: \t"
|
||||
" movl %2, (%1) \n"
|
||||
POOL_LOCK "cmpxchg %1, %0 \n\t"
|
||||
" jnz 1b \n\t"::"m"
|
||||
(*mem_pool), "r" (pool), "a" (mem_pool->free));
|
||||
" jnz 1b \n\t"::
|
||||
"m" (*mem_pool), "r" (pool), "a" (mem_pool->free));
|
||||
#else
|
||||
g_mutex_lock (mem_pool->chunk_lock);
|
||||
pool->link = (GstMemPoolElement *) mem_pool->free;
|
||||
|
|
|
@ -153,8 +153,8 @@ gst_mem_chunk_free (GstMemChunk * mem_chunk, gpointer mem)
|
|||
__asm__ __volatile__ ("1: \t"
|
||||
" movl %2, (%1) \n"
|
||||
CHUNK_LOCK "cmpxchg %1, %0 \n\t"
|
||||
" jnz 1b \n\t"::"m"
|
||||
(*mem_chunk), "r" (chunk), "a" (mem_chunk->free));
|
||||
" jnz 1b \n\t"::
|
||||
"m" (*mem_chunk), "r" (chunk), "a" (mem_chunk->free));
|
||||
#else
|
||||
fprintf (stderr, "This only compiles correctly on i386. Sorry\n");
|
||||
abort ();
|
||||
|
|
|
@ -15,8 +15,7 @@ main (int argc, char *argv[])
|
|||
return -1;
|
||||
}
|
||||
|
||||
pipeline =
|
||||
(GstElement *)
|
||||
pipeline = (GstElement *)
|
||||
gst_parse_launch ("filesrc name=my_filesrc ! mad ! osssink", &error);
|
||||
if (!pipeline) {
|
||||
fprintf (stderr, "Parse error: %s", error->message);
|
||||
|
|
|
@ -120,6 +120,7 @@ gst_example_get_type (void)
|
|||
0,
|
||||
(GInstanceInitFunc) gst_example_init,
|
||||
};
|
||||
|
||||
example_type =
|
||||
g_type_register_static (GST_TYPE_ELEMENT, "GstExample", &example_info,
|
||||
0);
|
||||
|
|
|
@ -15,7 +15,8 @@ typedef struct
|
|||
gchar *bs_accesspattern;
|
||||
|
||||
gboolean integrity_check;
|
||||
} TestParam;
|
||||
}
|
||||
TestParam;
|
||||
|
||||
static GSList *params = NULL;
|
||||
|
||||
|
|
|
@ -23,15 +23,15 @@ GstStaticCaps rawcaps5 =
|
|||
("video/x-raw-yuv, format=(fourcc)YUY2, framerate=(double)[0,1.79769e+308], width=(int)[0,2147483647], height=(int)[0,2147483647]; video/x-raw-yuv, format=(fourcc)UYVY, framerate=(double)[0,1.79769e+308], width=(int)[0,2147483647], height=(int)[0,2147483647]");
|
||||
|
||||
GstStaticCaps rawcaps6 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)240");
|
||||
|
||||
GstStaticCaps rawcaps7 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)[0,2147483647], height=(int)[0,2147483647], framerate=(double)[0,1.79769e+308]");
|
||||
|
||||
GstStaticCaps rawcaps8 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)240");
|
||||
|
||||
|
||||
|
|
|
@ -36,11 +36,11 @@ GstStaticCaps rawcaps6 = GST_STATIC_CAPS ("video/raw, "
|
|||
"height=(int)640, " "width=(int)480, " "framerate=(double)30.0");
|
||||
|
||||
GstStaticCaps rawcaps7 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)[1,2147483647], height=(int)[1,2147483647], framerate=(double)[0,1.79769e+308]");
|
||||
|
||||
GstStaticCaps rawcaps8 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc){ I420, YV12, YUY2 }, width=(int)[16,4096], height=(int)[16,4096], framerate=(double)[0,1.79769e+308]");
|
||||
|
||||
int
|
||||
|
|
|
@ -55,7 +55,8 @@ typedef struct _GstIndexTestCase
|
|||
gint64 src_value;
|
||||
GstFormat dest_format;
|
||||
gint64 expecting;
|
||||
} GstIndexTestCase;
|
||||
}
|
||||
GstIndexTestCase;
|
||||
|
||||
const static GstIndexTestCase cases[] = {
|
||||
{GST_INDEX_LOOKUP_EXACT, GST_FORMAT_BYTES, 3, GST_FORMAT_TIME, 3000},
|
||||
|
|
|
@ -15,7 +15,8 @@ typedef struct
|
|||
gchar *bs_accesspattern;
|
||||
|
||||
gboolean integrity_check;
|
||||
} TestParam;
|
||||
}
|
||||
TestParam;
|
||||
|
||||
static GSList *params = NULL;
|
||||
|
||||
|
|
|
@ -23,15 +23,15 @@ GstStaticCaps rawcaps5 =
|
|||
("video/x-raw-yuv, format=(fourcc)YUY2, framerate=(double)[0,1.79769e+308], width=(int)[0,2147483647], height=(int)[0,2147483647]; video/x-raw-yuv, format=(fourcc)UYVY, framerate=(double)[0,1.79769e+308], width=(int)[0,2147483647], height=(int)[0,2147483647]");
|
||||
|
||||
GstStaticCaps rawcaps6 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)240");
|
||||
|
||||
GstStaticCaps rawcaps7 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)[0,2147483647], height=(int)[0,2147483647], framerate=(double)[0,1.79769e+308]");
|
||||
|
||||
GstStaticCaps rawcaps8 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)320, height=(int)240");
|
||||
|
||||
|
||||
|
|
|
@ -36,11 +36,11 @@ GstStaticCaps rawcaps6 = GST_STATIC_CAPS ("video/raw, "
|
|||
"height=(int)640, " "width=(int)480, " "framerate=(double)30.0");
|
||||
|
||||
GstStaticCaps rawcaps7 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc)YUY2, width=(int)[1,2147483647], height=(int)[1,2147483647], framerate=(double)[0,1.79769e+308]");
|
||||
|
||||
GstStaticCaps rawcaps8 =
|
||||
GST_STATIC_CAPS
|
||||
GST_STATIC_CAPS
|
||||
("video/x-raw-yuv, format=(fourcc){ I420, YV12, YUY2 }, width=(int)[16,4096], height=(int)[16,4096], framerate=(double)[0,1.79769e+308]");
|
||||
|
||||
int
|
||||
|
|
|
@ -55,7 +55,8 @@ typedef struct _GstIndexTestCase
|
|||
gint64 src_value;
|
||||
GstFormat dest_format;
|
||||
gint64 expecting;
|
||||
} GstIndexTestCase;
|
||||
}
|
||||
GstIndexTestCase;
|
||||
|
||||
const static GstIndexTestCase cases[] = {
|
||||
{GST_INDEX_LOOKUP_EXACT, GST_FORMAT_BYTES, 3, GST_FORMAT_TIME, 3000},
|
||||
|
|
|
@ -18,7 +18,8 @@ typedef struct
|
|||
GSList *srcpadtemplates;
|
||||
GSList *sinkpadtemplates;
|
||||
GSList *arguments;
|
||||
} comp_element;
|
||||
}
|
||||
comp_element;
|
||||
|
||||
enum
|
||||
{
|
||||
|
@ -32,13 +33,15 @@ typedef struct
|
|||
gchar *name;
|
||||
int type;
|
||||
GSList *enums;
|
||||
} comp_argument;
|
||||
}
|
||||
comp_argument;
|
||||
|
||||
typedef struct
|
||||
{
|
||||
gint value;
|
||||
gchar *nick;
|
||||
} enum_value;
|
||||
}
|
||||
enum_value;
|
||||
|
||||
|
||||
void
|
||||
|
|
|
@ -6,7 +6,7 @@ indent \
|
|||
--case-indentation2 \
|
||||
--braces-after-struct-decl-line \
|
||||
--line-length80 \
|
||||
--use-tabs \
|
||||
--no-tabs \
|
||||
--cuddle-else \
|
||||
--dont-line-up-parentheses \
|
||||
--continuation-indentation4 \
|
||||
|
|
|
@ -285,7 +285,8 @@ get_candidates (const gchar * dir, const gchar * base)
|
|||
return candidates;
|
||||
}
|
||||
|
||||
int main (int argc, char **argv)
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
GHashTable *candidates;
|
||||
gchar *dir;
|
||||
|
|
Loading…
Reference in a new issue