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