mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
sync with the current CVS glib API
Original commit message from CVS: sync with the current CVS glib API
This commit is contained in:
parent
f279992aff
commit
3cda4e2eaa
86 changed files with 231 additions and 231 deletions
|
@ -73,8 +73,8 @@ G_SIGNAL_RUN_LAST
|
|||
G_SIGNAL_RUN_FIRST
|
||||
GCallback
|
||||
G_CALLBACK
|
||||
g_signal_newc
|
||||
g2g_signal_newc
|
||||
g_signal_new
|
||||
g2g_signal_new
|
||||
g_signal_lookup
|
||||
g_signal_handler_block
|
||||
g_signal_handler_unblock
|
||||
|
|
|
@ -54,11 +54,11 @@ main(int argc, char *argv[])
|
|||
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (src));
|
||||
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (parse));
|
||||
|
||||
g_signal_connectc (G_OBJECT (parse), "new_pad",
|
||||
G_CALLBACK (new_pad_created), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (parse), "new_pad",
|
||||
G_CALLBACK (new_pad_created), pipeline);
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos",
|
||||
G_CALLBACK (eof), NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos",
|
||||
G_CALLBACK (eof), NULL);
|
||||
|
||||
gst_pad_connect (gst_element_get_pad (src, "src"),
|
||||
gst_element_get_pad (parse, "sink"));
|
||||
|
@ -83,8 +83,8 @@ main(int argc, char *argv[])
|
|||
'new_pad' that we connected to the mpeg1parser using:
|
||||
</para>
|
||||
<programlisting>
|
||||
g_signal_connectc (G_OBJECT (parse), "new_pad",
|
||||
G_CALLBACK (new_pad_created), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (parse), "new_pad",
|
||||
G_CALLBACK (new_pad_created), pipeline);
|
||||
</programlisting>
|
||||
<para>
|
||||
When an elementary stream has been detected in the system stream,
|
||||
|
|
|
@ -51,12 +51,12 @@ main (int argc, char *argv[])
|
|||
|
||||
autobin = gst_bin_new ("autobin");
|
||||
cache = gst_elementfactory_make ("autoplugcache", "cache");
|
||||
g_signal_connectc (G_OBJECT (cache), "cache_empty",
|
||||
G_CALLBACK (gst_play_cache_empty), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (cache), "cache_empty",
|
||||
G_CALLBACK (gst_play_cache_empty), pipeline);
|
||||
|
||||
typefind = gst_elementfactory_make ("typefind", "typefind");
|
||||
g_signal_connectc (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (gst_play_have_type), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (gst_play_have_type), pipeline);
|
||||
gst_bin_add (GST_BIN (autobin), cache);
|
||||
gst_bin_add (GST_BIN (autobin), typefind);
|
||||
|
||||
|
|
|
@ -105,7 +105,7 @@ main(int argc, char *argv[])
|
|||
...
|
||||
|
||||
mpeg2parser = gst_elementfactory_make ("mpeg2parse", "mpeg2parse");
|
||||
g_signal_connectc (G_OBJECT (mpeg2parser), "new_pad", pad_connect_func, pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (mpeg2parser), "new_pad", pad_connect_func, pipeline);
|
||||
...
|
||||
|
||||
// start the pipeline
|
||||
|
|
|
@ -82,8 +82,8 @@ main (int argc, char *argv[])
|
|||
disksrc = gst_elementfactory_make ("disksrc", "disk_source");
|
||||
g_assert (disksrc != NULL);
|
||||
g_object_set (G_OBJECT (disksrc), "location", argv[1], NULL);
|
||||
g_signal_connectc (G_OBJECT (disksrc), "eos",
|
||||
G_CALLBACK (eos), thread, FALSE);
|
||||
g_signal_connect (G_OBJECT (disksrc), "eos",
|
||||
G_CALLBACK (eos), thread);
|
||||
|
||||
queue = gst_elementfactory_make ("queue", "queue");
|
||||
|
||||
|
|
|
@ -95,8 +95,8 @@ main (int argc, char *argv[])
|
|||
disksrc = gst_elementfactory_make ("disksrc", "disk_source");
|
||||
g_assert (disksrc != NULL);
|
||||
g_object_set (G_OBJECT (disksrc), "location", argv[1], NULL);
|
||||
g_signal_connectc (G_OBJECT (disksrc), "eos",
|
||||
G_CALLBACK (eos), thread, FALSE);
|
||||
g_signal_connect (G_OBJECT (disksrc), "eos",
|
||||
G_CALLBACK (eos), thread);
|
||||
|
||||
/* and an audio sink */
|
||||
audiosink = gst_elementfactory_make ("audiosink", "play_audio");
|
||||
|
|
|
@ -85,8 +85,8 @@ main(int argc, char *argv[])
|
|||
gst_bin_add (GST_BIN (bin), disksrc);
|
||||
gst_bin_add (GST_BIN (bin), typefind);
|
||||
|
||||
g_signal_connectc (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (type_found), NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (type_found), NULL);
|
||||
|
||||
gst_pad_connect (gst_element_get_pad (disksrc, "src"),
|
||||
gst_element_get_pad (typefind, "sink"));
|
||||
|
|
|
@ -196,8 +196,8 @@ xmlNsPtr ns;
|
|||
ns = xmlNewNs (NULL, "http://gstreamer.net/gst-test/1.0/", "test");
|
||||
...
|
||||
thread = gst_elementfactory_make ("thread", "thread");
|
||||
g_signal_connectc (G_OBJECT (thread), "object_saved",
|
||||
G_CALLBACK (object_saved), g_strdup ("decoder thread"), FALSE);
|
||||
g_signal_connect (G_OBJECT (thread), "object_saved",
|
||||
G_CALLBACK (object_saved), g_strdup ("decoder thread"));
|
||||
...
|
||||
</programlisting>
|
||||
<para>
|
||||
|
@ -246,7 +246,7 @@ object_saved (GstObject *object, xmlNodePtr parent, gpointer data)
|
|||
<programlisting>
|
||||
xml = gst_xml_new ();
|
||||
|
||||
g_signal_connectc (G_OBJECT (xml), "object_loaded",
|
||||
g_signal_connect (G_OBJECT (xml), "object_loaded",
|
||||
G_CALLBACK (xml_loaded), xml);
|
||||
|
||||
ret = gst_xml_parse_file (xml, "xmlTest.gst", NULL);
|
||||
|
|
|
@ -169,10 +169,10 @@ int main (int argc, char *argv[])
|
|||
|
||||
/* set signal handlers */
|
||||
g_print ("setting signal handlers\n");
|
||||
g_signal_connectc (G_OBJECT(cutter), "cut_start",
|
||||
(GCallback)cut_start_signal, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT(cutter), "cut_stop",
|
||||
(GCallback)cut_stop_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT(cutter), "cut_start",
|
||||
(GCallback)cut_start_signal, NULL);
|
||||
g_signal_connect (G_OBJECT(cutter), "cut_stop",
|
||||
(GCallback)cut_stop_signal, NULL);
|
||||
|
||||
/* start playing */
|
||||
g_print ("setting to play\n");
|
||||
|
|
|
@ -28,8 +28,8 @@ int main(int argc,char *argv[])
|
|||
/* create a disk reader */
|
||||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL);
|
||||
|
||||
/* now it's time to get the parser */
|
||||
parse = gst_elementfactory_make("mp3parse","parse");
|
||||
|
|
|
@ -105,12 +105,12 @@ main (int argc, char *argv[])
|
|||
|
||||
autobin = gst_bin_new ("autobin");
|
||||
cache = gst_elementfactory_make ("autoplugcache", "cache");
|
||||
g_signal_connectc (G_OBJECT (cache), "cache_empty",
|
||||
G_CALLBACK (gst_play_cache_empty), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (cache), "cache_empty",
|
||||
G_CALLBACK (gst_play_cache_empty), pipeline);
|
||||
|
||||
typefind = gst_elementfactory_make ("typefind", "typefind");
|
||||
g_signal_connectc (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (gst_play_have_type), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (gst_play_have_type), pipeline);
|
||||
gst_bin_add (GST_BIN (autobin), cache);
|
||||
gst_bin_add (GST_BIN (autobin), typefind);
|
||||
|
||||
|
|
|
@ -276,8 +276,8 @@ create_input_channel (int id, char* location)
|
|||
gst_bin_add(GST_BIN(channel->pipe), channel->disksrc);
|
||||
|
||||
/* connect signal to eos of disksrc */
|
||||
g_signal_connectc (G_OBJECT(channel->disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL,FALSE);
|
||||
g_signal_connect (G_OBJECT(channel->disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL);
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -169,7 +169,7 @@ gst_example_class_init (GstExampleClass *klass)
|
|||
* called asdf. The signal will also pass a pointer to the listeners
|
||||
* which happens to be the example element itself */
|
||||
gst_example_signals[ASDF] =
|
||||
g_signal_newc("asdf", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new("asdf", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstExampleClass, asdf), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_EXAMPLE);
|
||||
|
|
|
@ -36,8 +36,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc (G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect (G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
queue = gst_elementfactory_make("queue", "queue");
|
||||
|
||||
|
|
|
@ -36,8 +36,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
queue = gst_elementfactory_make("queue", "queue");
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
queue = gst_elementfactory_make("queue", "queue");
|
||||
queue2 = gst_elementfactory_make("queue", "queue2");
|
||||
|
|
|
@ -37,8 +37,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
/* and an audio sink */
|
||||
osssink = gst_elementfactory_make("osssink", "play_audio");
|
||||
|
|
|
@ -43,8 +43,8 @@ main(int argc, char *argv[])
|
|||
gst_bin_add(GST_BIN(bin), disksrc);
|
||||
gst_bin_add(GST_BIN(bin), typefind);
|
||||
|
||||
g_signal_connectc (G_OBJECT (typefind), "have_type",
|
||||
type_found, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (typefind), "have_type",
|
||||
type_found, NULL);
|
||||
|
||||
gst_pad_connect(gst_element_get_pad(disksrc,"src"),
|
||||
gst_element_get_pad(typefind,"sink"));
|
||||
|
|
|
@ -32,12 +32,12 @@ int main(int argc,char *argv[])
|
|||
//thread = gst_thread_new("thread");
|
||||
thread = gst_elementfactory_make("thread", "thread");
|
||||
g_assert(thread != NULL);
|
||||
g_signal_connectc (G_OBJECT (thread), "object_saved", object_saved, g_strdup ("decoder thread"), FALSE);
|
||||
g_signal_connect (G_OBJECT (thread), "object_saved", object_saved, g_strdup ("decoder thread"));
|
||||
|
||||
thread2 = gst_elementfactory_make("thread", "thread2");
|
||||
//thread2 = gst_thread_new("thread2");
|
||||
g_assert(thread2 != NULL);
|
||||
g_signal_connectc (G_OBJECT (thread2), "object_saved", object_saved, g_strdup ("render thread"), FALSE);
|
||||
g_signal_connect (G_OBJECT (thread2), "object_saved", object_saved, g_strdup ("render thread"));
|
||||
|
||||
/* create a new bin to hold the elements */
|
||||
bin = gst_bin_new("bin");
|
||||
|
|
|
@ -35,7 +35,7 @@ int main(int argc,char *argv[])
|
|||
|
||||
xml = gst_xml_new ();
|
||||
|
||||
g_signal_connectc (G_OBJECT (xml), "object_loaded", xml_loaded, xml, FALSE);
|
||||
g_signal_connect (G_OBJECT (xml), "object_loaded", xml_loaded, xml);
|
||||
|
||||
ret = gst_xml_parse_file(xml, "xmlTest.gst", NULL);
|
||||
g_assert (ret == TRUE);
|
||||
|
|
|
@ -73,9 +73,9 @@ int main (int argc,char *argv[]) {
|
|||
|
||||
autobin = gst_bin_new("autobin");
|
||||
cache = gst_elementfactory_make ("autoplugcache","cache");
|
||||
g_signal_connectc (G_OBJECT(cache),"cache_empty",(GCallback)cache_empty,NULL,FALSE);
|
||||
g_signal_connect (G_OBJECT(cache),"cache_empty",(GCallback)cache_empty,NULL);
|
||||
typefind = gst_elementfactory_make ("typefind", "typefind");
|
||||
g_signal_connectc (G_OBJECT(typefind),"have_type",(GCallback)have_type,&caps,FALSE);
|
||||
g_signal_connect (G_OBJECT(typefind),"have_type",(GCallback)have_type,&caps);
|
||||
gst_bin_add (GST_BIN(autobin),cache);
|
||||
gst_bin_add (GST_BIN(autobin),typefind);
|
||||
gst_element_connect(cache,"src",typefind,"sink");
|
||||
|
|
|
@ -143,12 +143,12 @@ gst_autoplugcache_class_init (GstAutoplugCacheClass *klass)
|
|||
FALSE,G_PARAM_WRITABLE)); // CHECKME!
|
||||
|
||||
gst_autoplugcache_signals[FIRST_BUFFER] =
|
||||
g_signal_newc ("first_buffer", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("first_buffer", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstAutoplugCacheClass, first_buffer), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
gst_autoplugcache_signals[CACHE_EMPTY] =
|
||||
g_signal_newc ("cache_empty", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("cache_empty", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstAutoplugCacheClass, cache_empty), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
|
||||
|
|
|
@ -138,7 +138,7 @@ gst_autoplugger_class_init (GstAutopluggerClass *klass)
|
|||
|
||||
/*
|
||||
gst_autoplugger_signals[_EMPTY] =
|
||||
g_signal_newc ("_empty", G_OBJECT_TYPE(gobject_class), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("_empty", G_OBJECT_TYPE(gobject_class), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstAutopluggerClass, _empty), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
*/
|
||||
|
@ -171,8 +171,8 @@ gst_autoplugger_init (GstAutoplugger *autoplugger)
|
|||
g_object_set(G_OBJECT(autoplugger->cache),"caps_proxy",TRUE,NULL);
|
||||
|
||||
// attach signals to the cache
|
||||
g_signal_connectc (G_OBJECT (autoplugger->cache), "first_buffer",
|
||||
G_CALLBACK (gst_autoplugger_cache_first_buffer), autoplugger, FALSE);
|
||||
g_signal_connect (G_OBJECT (autoplugger->cache), "first_buffer",
|
||||
G_CALLBACK (gst_autoplugger_cache_first_buffer), autoplugger);
|
||||
|
||||
// add the cache to self
|
||||
gst_bin_add (GST_BIN(autoplugger), autoplugger->cache);
|
||||
|
@ -182,18 +182,18 @@ gst_autoplugger_init (GstAutoplugger *autoplugger)
|
|||
autoplugger->cache_srcpad = gst_element_get_pad (autoplugger->cache, "src");
|
||||
|
||||
// attach handlers to the typefind pads
|
||||
g_signal_connectc (G_OBJECT (autoplugger->cache_sinkpad), "caps_changed",
|
||||
G_CALLBACK (gst_autoplugger_external_sink_caps_changed), autoplugger,FALSE);
|
||||
g_signal_connectc (G_OBJECT (autoplugger->cache_srcpad), "caps_changed",
|
||||
G_CALLBACK (gst_autoplugger_external_src_caps_changed), autoplugger,FALSE);
|
||||
g_signal_connectc (G_OBJECT (autoplugger->cache_sinkpad), "caps_nego_failed",
|
||||
G_CALLBACK (gst_autoplugger_external_sink_caps_nego_failed), autoplugger,FALSE);
|
||||
g_signal_connectc (G_OBJECT (autoplugger->cache_srcpad), "caps_nego_failed",
|
||||
G_CALLBACK (gst_autoplugger_external_src_caps_nego_failed), autoplugger,FALSE);
|
||||
// g_signal_connectc (G_OBJECT (autoplugger->cache_sinkpad), "connected",
|
||||
// gst_autoplugger_external_sink_connected, autoplugger,FALSE);
|
||||
// g_signal_connectc (G_OBJECT (autoplugger->cache_srcpad), "connected",
|
||||
// gst_autoplugger_external_src_connected, autoplugger,FALSE);
|
||||
g_signal_connect (G_OBJECT (autoplugger->cache_sinkpad), "caps_changed",
|
||||
G_CALLBACK (gst_autoplugger_external_sink_caps_changed), autoplugger);
|
||||
g_signal_connect (G_OBJECT (autoplugger->cache_srcpad), "caps_changed",
|
||||
G_CALLBACK (gst_autoplugger_external_src_caps_changed), autoplugger);
|
||||
g_signal_connect (G_OBJECT (autoplugger->cache_sinkpad), "caps_nego_failed",
|
||||
G_CALLBACK (gst_autoplugger_external_sink_caps_nego_failed), autoplugger);
|
||||
g_signal_connect (G_OBJECT (autoplugger->cache_srcpad), "caps_nego_failed",
|
||||
G_CALLBACK (gst_autoplugger_external_src_caps_nego_failed), autoplugger);
|
||||
// g_signal_connect (G_OBJECT (autoplugger->cache_sinkpad), "connected",
|
||||
// gst_autoplugger_external_sink_connected, autoplugger);
|
||||
// g_signal_connect (G_OBJECT (autoplugger->cache_srcpad), "connected",
|
||||
// gst_autoplugger_external_src_connected, autoplugger);
|
||||
|
||||
// ghost both of these pads to the outside world
|
||||
gst_element_add_ghost_pad (GST_ELEMENT(autoplugger), autoplugger->cache_sinkpad, "sink");
|
||||
|
@ -488,8 +488,8 @@ gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
|
|||
|
||||
// attach the cache_empty handler
|
||||
// FIXME this is the wrong place, it shouldn't be done until we get successful caps nego!
|
||||
g_signal_connectc (G_OBJECT(autoplugger->cache),"cache_empty",
|
||||
G_CALLBACK (gst_autoplugger_cache_empty), autoplugger, FALSE);
|
||||
g_signal_connect (G_OBJECT(autoplugger->cache),"cache_empty",
|
||||
G_CALLBACK (gst_autoplugger_cache_empty), autoplugger);
|
||||
|
||||
autoplugger->paused--;
|
||||
if (autoplugger->paused == 0)
|
||||
|
@ -532,8 +532,8 @@ gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
|
|||
GST_DEBUG(GST_CAT_AUTOPLUG, "creating typefind and setting signal handler\n");
|
||||
autoplugger->typefind = gst_elementfactory_make("typefind","unnamed_typefind");
|
||||
autoplugger->typefind_sinkpad = gst_element_get_pad(autoplugger->typefind,"sink");
|
||||
g_signal_connectc (G_OBJECT(autoplugger->typefind),"have_type",
|
||||
G_CALLBACK (gst_autoplugger_typefind_have_type), autoplugger, FALSE);
|
||||
g_signal_connect (G_OBJECT(autoplugger->typefind),"have_type",
|
||||
G_CALLBACK (gst_autoplugger_typefind_have_type), autoplugger);
|
||||
}
|
||||
// add it to self and attach it
|
||||
GST_DEBUG(GST_CAT_AUTOPLUG, "adding typefind to self and connecting to cache\n");
|
||||
|
@ -553,8 +553,8 @@ gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
|
|||
gst_schedule_show(GST_ELEMENT_SCHED(autoplugger));
|
||||
} else {
|
||||
// // attach the cache_empty handler, since the cache simply isn't needed
|
||||
// g_signal_connectc (G_OBJECT(autoplugger->cache),"cache_empty",
|
||||
// gst_autoplugger_cache_empty,autoplugger,FALSE);
|
||||
// g_signal_connect (G_OBJECT(autoplugger->cache),"cache_empty",
|
||||
// gst_autoplugger_cache_empty,autoplugger);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -226,8 +226,8 @@ gst_autoplug_pads_autoplug (GstElement *src, GstElement *sink)
|
|||
if (!connected) {
|
||||
GST_DEBUG (0,"gstpipeline: delaying pad connections for \"%s\" to \"%s\"\n",
|
||||
GST_ELEMENT_NAME(src), GST_ELEMENT_NAME(sink));
|
||||
g_signal_connectc (G_OBJECT(src), "new_pad",
|
||||
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink, FALSE);
|
||||
g_signal_connect (G_OBJECT(src), "new_pad",
|
||||
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -460,10 +460,10 @@ differ:
|
|||
data->i = i;
|
||||
|
||||
GST_DEBUG (0,"delaying the creation of a ghostpad for %s\n", GST_ELEMENT_NAME (thesrcelement));
|
||||
g_signal_connectc (G_OBJECT (thesrcelement), "new_pad",
|
||||
G_CALLBACK (autoplug_dynamic_pad), data, FALSE);
|
||||
g_signal_connectc (G_OBJECT (thesrcelement), "new_ghost_pad",
|
||||
G_CALLBACK (autoplug_dynamic_pad), data, FALSE);
|
||||
g_signal_connect (G_OBJECT (thesrcelement), "new_pad",
|
||||
G_CALLBACK (autoplug_dynamic_pad), data);
|
||||
g_signal_connect (G_OBJECT (thesrcelement), "new_ghost_pad",
|
||||
G_CALLBACK (autoplug_dynamic_pad), data);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -228,10 +228,10 @@ gst_autoplug_pads_autoplug (GstElement *src, GstElement *sink)
|
|||
if (!connected) {
|
||||
GST_DEBUG (0,"gstpipeline: delaying pad connections for \"%s\" to \"%s\"\n",
|
||||
GST_ELEMENT_NAME(src), GST_ELEMENT_NAME(sink));
|
||||
g_signal_connectc (G_OBJECT(src),"new_pad",
|
||||
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink, FALSE);
|
||||
g_signal_connectc (G_OBJECT(src),"new_ghost_pad",
|
||||
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink, FALSE);
|
||||
g_signal_connect (G_OBJECT(src),"new_pad",
|
||||
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink);
|
||||
g_signal_connect (G_OBJECT(src),"new_ghost_pad",
|
||||
G_CALLBACK (gst_autoplug_pads_autoplug_func), sink);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -103,7 +103,7 @@ gst_disksink_class_init (GstDiskSinkClass *klass)
|
|||
NULL,G_PARAM_READWRITE)); // CHECKME!
|
||||
|
||||
gst_disksink_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstDiskSinkClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ gst_fakesink_class_init (GstFakeSinkClass *klass)
|
|||
FALSE, G_PARAM_READWRITE));
|
||||
|
||||
gst_fakesink_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstFakeSinkClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -151,7 +151,7 @@ gst_fakesrc_class_init (GstFakeSrcClass *klass)
|
|||
FALSE, G_PARAM_READWRITE)); // CHECKME
|
||||
|
||||
gst_fakesrc_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstFakeSrcClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -105,7 +105,7 @@ gst_identity_class_init (GstIdentityClass *klass)
|
|||
TRUE,G_PARAM_READWRITE));
|
||||
|
||||
gst_identity_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstIdentityClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -101,7 +101,7 @@ gst_multidisksrc_class_init (GstMultiDiskSrcClass *klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||
|
||||
gst_multidisksrc_signals[NEW_FILE] =
|
||||
g_signal_newc ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstMultiDiskSrcClass, new_file), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -101,7 +101,7 @@ gst_multidisksrc_class_init (GstMultiDiskSrcClass *klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||
|
||||
gst_multidisksrc_signals[NEW_FILE] =
|
||||
g_signal_newc ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstMultiDiskSrcClass, new_file), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -249,7 +249,7 @@ g2g_param_spec_string(gchar *name,gchar *nick,gchar *blurb,gchar *def,gint flags
|
|||
|
||||
|
||||
guint
|
||||
g2g_signal_newc (const gchar *name,
|
||||
g2g_signal_new (const gchar *name,
|
||||
GtkType object_type,
|
||||
GtkSignalRunType signal_flags,
|
||||
guint function_offset,
|
||||
|
|
|
@ -138,9 +138,9 @@ gpointer g2g_object_new(GtkType type,gpointer blah_varargs_stuff);
|
|||
#define GCallback gpointer // FIXME?
|
||||
#define G_CALLBACK(f) ((gpointer)(f))
|
||||
|
||||
#define g_signal_newc g2g_signal_newc
|
||||
#define g_signal_new g2g_signal_new
|
||||
guint
|
||||
g2g_signal_newc (const gchar *signal_name,
|
||||
g2g_signal_new (const gchar *signal_name,
|
||||
GtkType object_type,
|
||||
GtkSignalRunType signal_flags,
|
||||
guint function_offset,
|
||||
|
@ -156,7 +156,7 @@ g_signal_emit(object,signal,detail,args...) \
|
|||
gtk_signal_emit((GtkObject *)object,signal, ## args )
|
||||
|
||||
#define \
|
||||
g_signal_connectc(object,name,func,func_data,swap) \
|
||||
g_signal_connect(object,name,func,func_data) \
|
||||
gtk_signal_connect((GtkObject *)object,name,func,func_data)
|
||||
|
||||
#define \
|
||||
|
|
|
@ -65,7 +65,7 @@ gst_init (int *argc, char **argv[])
|
|||
if (!g_thread_supported ()) g_thread_init (NULL);
|
||||
|
||||
#ifdef USE_GLIB2
|
||||
g_type_init(0);
|
||||
g_type_init();
|
||||
#else
|
||||
{
|
||||
gchar *display;
|
||||
|
|
|
@ -77,7 +77,7 @@ gst_autoplug_class_init(GstAutoplugClass *klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_OBJECT);
|
||||
|
||||
gst_autoplug_signals[NEW_OBJECT] =
|
||||
g_signal_newc ("new_object", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new_object", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstAutoplugClass, new_object), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT, G_TYPE_NONE, 1,
|
||||
GST_TYPE_OBJECT);
|
||||
|
|
|
@ -108,7 +108,7 @@ gst_bin_class_init (GstBinClass *klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||
|
||||
gst_bin_signals[OBJECT_ADDED] =
|
||||
g_signal_newc ("object_added", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_FIRST,
|
||||
g_signal_new ("object_added", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_FIRST,
|
||||
G_STRUCT_OFFSET (GstBinClass, object_added), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_ELEMENT);
|
||||
|
|
|
@ -99,37 +99,37 @@ gst_element_class_init (GstElementClass *klass)
|
|||
parent_class = g_type_class_ref(GST_TYPE_OBJECT);
|
||||
|
||||
gst_element_signals[STATE_CHANGE] =
|
||||
g_signal_newc ("state_change", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("state_change", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, state_change), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__INT, G_TYPE_NONE, 1,
|
||||
G_TYPE_INT);
|
||||
gst_element_signals[NEW_PAD] =
|
||||
g_signal_newc ("new_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, new_pad), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_PAD);
|
||||
gst_element_signals[PAD_REMOVED] =
|
||||
g_signal_newc ("pad_removed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("pad_removed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, pad_removed), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_PAD);
|
||||
gst_element_signals[NEW_GHOST_PAD] =
|
||||
g_signal_newc ("new_ghost_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new_ghost_pad", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, new_ghost_pad), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_PAD);
|
||||
gst_element_signals[GHOST_PAD_REMOVED] =
|
||||
g_signal_newc ("ghost_pad_removed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("ghost_pad_removed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, ghost_pad_removed), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_PAD);
|
||||
gst_element_signals[ERROR] =
|
||||
g_signal_newc ("error", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("error", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass, error), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__STRING, G_TYPE_NONE,1,
|
||||
G_TYPE_STRING);
|
||||
gst_element_signals[EOS] =
|
||||
g_signal_newc ("eos", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("eos", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstElementClass,eos), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
|
||||
|
@ -137,7 +137,7 @@ gst_element_class_init (GstElementClass *klass)
|
|||
|
||||
gobject_class->set_property = GST_DEBUG_FUNCPTR(gst_element_set_property);
|
||||
gobject_class->get_property = GST_DEBUG_FUNCPTR(gst_element_get_property);
|
||||
gobject_class->shutdown = GST_DEBUG_FUNCPTR(gst_element_shutdown);
|
||||
// gobject_class->shutdown = GST_DEBUG_FUNCPTR(gst_element_shutdown);
|
||||
// FIXME!
|
||||
// gobject_class->destroy = GST_DEBUG_FUNCPTR(gst_element_real_destroy);
|
||||
|
||||
|
@ -931,8 +931,8 @@ gst_element_shutdown (GObject *object)
|
|||
if (GST_IS_BIN (GST_OBJECT_PARENT (element)))
|
||||
gst_bin_remove (GST_BIN (GST_OBJECT_PARENT (element)), element);
|
||||
|
||||
if (G_OBJECT_CLASS (parent_class)->shutdown)
|
||||
G_OBJECT_CLASS (parent_class)->shutdown (G_OBJECT (object));
|
||||
// if (G_OBJECT_CLASS (parent_class)->shutdown)
|
||||
// G_OBJECT_CLASS (parent_class)->shutdown (G_OBJECT (object));
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
|
@ -94,13 +94,13 @@ gst_object_class_init (GstObjectClass *klass)
|
|||
parent_class = g_type_class_ref (G_TYPE_OBJECT);
|
||||
|
||||
gst_object_signals[PARENT_SET] =
|
||||
g_signal_newc("parent_set", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new("parent_set", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstObjectClass, parent_set), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__OBJECT,G_TYPE_NONE,1,
|
||||
G_TYPE_OBJECT);
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
gst_object_signals[OBJECT_SAVED] =
|
||||
g_signal_newc("object_saved", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new("object_saved", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstObjectClass, object_saved), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER,G_TYPE_NONE,1,
|
||||
G_TYPE_POINTER);
|
||||
|
@ -110,7 +110,7 @@ gst_object_class_init (GstObjectClass *klass)
|
|||
// FIXME!!!
|
||||
// klass->signal_object = g_object_new(gst_signal_object_get_type (,NULL));
|
||||
|
||||
gobject_class->shutdown = gst_object_shutdown;
|
||||
// gobject_class->shutdown = gst_object_shutdown;
|
||||
// gobject_class->destroy = gst_object_real_destroy;
|
||||
gobject_class->finalize = gst_object_finalize;
|
||||
}
|
||||
|
@ -214,7 +214,7 @@ gst_object_destroy (GstObject *object)
|
|||
* invocations.
|
||||
*/
|
||||
gst_object_ref (object);
|
||||
G_OBJECT_GET_CLASS (object)->shutdown (G_OBJECT (object));
|
||||
// G_OBJECT_GET_CLASS (object)->shutdown (G_OBJECT (object));
|
||||
gst_object_unref (object);
|
||||
}
|
||||
}
|
||||
|
@ -224,7 +224,7 @@ gst_object_shutdown (GObject *object)
|
|||
{
|
||||
GST_DEBUG (GST_CAT_REFCOUNTING, "shutdown '%s'\n",GST_OBJECT_NAME(object));
|
||||
GST_FLAG_SET (GST_OBJECT (object), GST_DESTROYED);
|
||||
parent_class->shutdown (object);
|
||||
// parent_class->shutdown (object);
|
||||
}
|
||||
|
||||
/* finilize is called when the object has to free its resources */
|
||||
|
@ -618,7 +618,7 @@ gst_signal_object_class_init (GstSignalObjectClass *klass)
|
|||
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
gst_signal_object_signals[SO_OBJECT_LOADED] =
|
||||
g_signal_newc("object_loaded", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new("object_loaded", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstObjectClass, parent_set), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT_POINTER,G_TYPE_NONE,2,
|
||||
G_TYPE_OBJECT,G_TYPE_POINTER);
|
||||
|
@ -647,7 +647,7 @@ gst_class_signal_connect (GstObjectClass *klass,
|
|||
gpointer func,
|
||||
gpointer func_data)
|
||||
{
|
||||
return g_signal_connectc (klass->signal_object, name, func, func_data, FALSE);
|
||||
return g_signal_connect (klass->signal_object, name, func, func_data);
|
||||
}
|
||||
|
||||
#ifndef GST_DISABLE_LOADSAVE
|
||||
|
|
12
gst/gstpad.c
12
gst/gstpad.c
|
@ -147,27 +147,27 @@ gst_real_pad_class_init (GstRealPadClass *klass)
|
|||
gobject_class->get_property = GST_DEBUG_FUNCPTR(gst_real_pad_get_property);
|
||||
|
||||
gst_real_pad_signals[REAL_SET_ACTIVE] =
|
||||
g_signal_newc ("set_active", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("set_active", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstRealPadClass, set_active), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__BOOLEAN, G_TYPE_NONE, 1,
|
||||
G_TYPE_BOOLEAN);
|
||||
gst_real_pad_signals[REAL_CAPS_CHANGED] =
|
||||
g_signal_newc ("caps_changed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("caps_changed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstRealPadClass, caps_changed), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
gst_real_pad_signals[REAL_CAPS_NEGO_FAILED] =
|
||||
g_signal_newc ("caps_nego_failed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("caps_nego_failed", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstRealPadClass, caps_nego_failed), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
gst_real_pad_signals[REAL_CONNECTED] =
|
||||
g_signal_newc ("connected", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("connected", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstRealPadClass, connected), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
gst_real_pad_signals[REAL_DISCONNECTED] =
|
||||
g_signal_newc ("disconnected", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("disconnected", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstRealPadClass, disconnected), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
@ -1629,7 +1629,7 @@ gst_padtemplate_class_init (GstPadTemplateClass *klass)
|
|||
padtemplate_parent_class = g_type_class_ref(GST_TYPE_OBJECT);
|
||||
|
||||
gst_padtemplate_signals[TEMPL_PAD_CREATED] =
|
||||
g_signal_newc ("pad_created", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("pad_created", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstPadTemplateClass, pad_created), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_PAD);
|
||||
|
|
|
@ -371,8 +371,8 @@ gst_parse_launch_cmdline(int argc,char *argv[],GstBin *parent,gst_parse_priv *pr
|
|||
srcpadname,
|
||||
GST_DEBUG_PAD_NAME(GST_PARSE_LISTPAD(sinkpads)));
|
||||
|
||||
g_signal_connectc (G_OBJECT (previous), "new_pad", dynamic_connect, connect, FALSE);
|
||||
g_signal_connectc (G_OBJECT (previous), "new_ghost_pad", dynamic_connect, connect, FALSE);
|
||||
g_signal_connect (G_OBJECT (previous), "new_pad", dynamic_connect, connect);
|
||||
g_signal_connect (G_OBJECT (previous), "new_ghost_pad", dynamic_connect, connect);
|
||||
}
|
||||
else {
|
||||
for (j=0; (j<numsrcpads) && (j<numsinkpads); j++){
|
||||
|
@ -394,7 +394,7 @@ gst_parse_launch_cmdline(int argc,char *argv[],GstBin *parent,gst_parse_priv *pr
|
|||
// thomas: if we're the first element, connect eos signal
|
||||
if (elementcount == 1)
|
||||
{
|
||||
g_signal_connectc (G_OBJECT (element), "eos", have_eos, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (element), "eos", have_eos, NULL);
|
||||
|
||||
}
|
||||
// if we're the first element, ghost all the sinkpads
|
||||
|
|
|
@ -98,7 +98,7 @@ gst_typefind_class_init (GstTypeFindClass *klass)
|
|||
g_param_spec_pointer("caps", "Caps", "Found capabilities", G_PARAM_READABLE));
|
||||
|
||||
gst_typefind_signals[HAVE_TYPE] =
|
||||
g_signal_newc ("have_type", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("have_type", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstTypeFindClass, have_type), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -70,7 +70,7 @@ gst_xml_class_init (GstXMLClass *klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_OBJECT);
|
||||
|
||||
gst_xml_signals[OBJECT_LOADED] =
|
||||
g_signal_newc ("object_loaded", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("object_loaded", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstXMLClass, object_loaded), NULL, NULL,
|
||||
gst_marshal_VOID__OBJECT_POINTER, G_TYPE_NONE, 2,
|
||||
GST_TYPE_OBJECT, G_TYPE_POINTER);
|
||||
|
|
|
@ -103,7 +103,7 @@ gst_disksink_class_init (GstDiskSinkClass *klass)
|
|||
NULL,G_PARAM_READWRITE)); // CHECKME!
|
||||
|
||||
gst_disksink_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstDiskSinkClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
|
||||
|
||||
|
|
|
@ -111,7 +111,7 @@ gst_fakesink_class_init (GstFakeSinkClass *klass)
|
|||
FALSE, G_PARAM_READWRITE));
|
||||
|
||||
gst_fakesink_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstFakeSinkClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -151,7 +151,7 @@ gst_fakesrc_class_init (GstFakeSrcClass *klass)
|
|||
FALSE, G_PARAM_READWRITE)); // CHECKME
|
||||
|
||||
gst_fakesrc_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstFakeSrcClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -105,7 +105,7 @@ gst_identity_class_init (GstIdentityClass *klass)
|
|||
TRUE,G_PARAM_READWRITE));
|
||||
|
||||
gst_identity_signals[SIGNAL_HANDOFF] =
|
||||
g_signal_newc ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("handoff", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstIdentityClass, handoff), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -101,7 +101,7 @@ gst_multidisksrc_class_init (GstMultiDiskSrcClass *klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||
|
||||
gst_multidisksrc_signals[NEW_FILE] =
|
||||
g_signal_newc ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstMultiDiskSrcClass, new_file), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -101,7 +101,7 @@ gst_multidisksrc_class_init (GstMultiDiskSrcClass *klass)
|
|||
parent_class = g_type_class_ref (GST_TYPE_ELEMENT);
|
||||
|
||||
gst_multidisksrc_signals[NEW_FILE] =
|
||||
g_signal_newc ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new ("new_file", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstMultiDiskSrcClass, new_file), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
G_TYPE_POINTER);
|
||||
|
|
|
@ -160,11 +160,11 @@ int main(int argc,char *argv[]) {
|
|||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(mux));
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(fdsink));
|
||||
|
||||
g_signal_connectc(G_OBJECT(parse),"new_pad",
|
||||
G_CALLBACK(new_pad_created),pipeline, FALSE);
|
||||
g_signal_connect(G_OBJECT(parse),"new_pad",
|
||||
G_CALLBACK(new_pad_created),pipeline);
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL, FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_pad_connect(gst_element_get_pad(src,"src"),
|
||||
gst_element_get_pad(parse,"sink"));
|
||||
|
|
|
@ -58,8 +58,8 @@ GstElement *fakesrc() {
|
|||
g_return_val_if_fail(src != NULL,NULL);
|
||||
g_object_set(G_OBJECT(src),"silent",TRUE,NULL);
|
||||
g_object_set(G_OBJECT(src),"num_buffers",iterations,NULL);
|
||||
g_signal_connectc(G_OBJECT(src),
|
||||
"handoff",G_CALLBACK(handoff_src),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(src),
|
||||
"handoff",G_CALLBACK(handoff_src),NULL);
|
||||
|
||||
return src;
|
||||
}
|
||||
|
@ -70,8 +70,8 @@ GstElement *fakesink() {
|
|||
sink = gst_elementfactory_make("fakesink","fakesink");
|
||||
g_return_val_if_fail(sink != NULL,NULL);
|
||||
g_object_set(G_OBJECT(sink),"silent",TRUE,NULL);
|
||||
g_signal_connectc(G_OBJECT(sink),
|
||||
"handoff",G_CALLBACK(handoff_sink),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(sink),
|
||||
"handoff",G_CALLBACK(handoff_sink),NULL);
|
||||
|
||||
return sink;
|
||||
}
|
||||
|
|
|
@ -200,9 +200,9 @@ int main(int argc,char *argv[]) {
|
|||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(src));
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(parse));
|
||||
|
||||
g_signal_connectc(G_OBJECT(parse),"new_pad",mp2tomp1, pipeline, FALSE);
|
||||
g_signal_connect(G_OBJECT(parse),"new_pad",mp2tomp1, pipeline);
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eos",G_CALLBACK(eof),NULL, FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eos",G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_pad_connect(gst_element_get_pad(src,"src"),
|
||||
gst_element_get_pad(parse,"sink"));
|
||||
|
|
|
@ -153,7 +153,7 @@ mp2tomp1_new_pad (GstElement *parser,GstPad *pad, GstElement *pipeline)
|
|||
g_object_set(G_OBJECT(smooth),"active",FALSE,NULL);
|
||||
encode = gst_elementfactory_make("winenc","encode");
|
||||
g_return_if_fail(encode != NULL);
|
||||
g_signal_connectc(G_OBJECT(encode),"frame_encoded",G_CALLBACK(frame_encoded),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(encode),"frame_encoded",G_CALLBACK(frame_encoded),NULL);
|
||||
g_object_set(G_OBJECT(encode),"bitrate",800*4,NULL);
|
||||
g_object_set(G_OBJECT(encode),"quality",10000,NULL);
|
||||
//g_object_set(G_OBJECT(encode),"compression",NULL,NULL);
|
||||
|
@ -229,7 +229,7 @@ main (int argc,char *argv[])
|
|||
src = gst_elementfactory_make ("disksrc", "src");
|
||||
}
|
||||
g_return_val_if_fail (src != NULL, -1);
|
||||
gtk_object_set (GTK_OBJECT (src), "location", argv[1], NULL);
|
||||
g_object_set (G_OBJECT (src), "location", argv[1], NULL);
|
||||
g_print ("should be using file '%s'\n", argv[1]);
|
||||
|
||||
|
||||
|
@ -247,16 +247,16 @@ main (int argc,char *argv[])
|
|||
fd = open (argv[2], O_CREAT|O_RDWR|O_TRUNC, S_IREAD|S_IWRITE);
|
||||
fdsink = gst_elementfactory_make ("fdsink", "fdsink");
|
||||
g_return_val_if_fail (fdsink != NULL, -1);
|
||||
gtk_object_set (GTK_OBJECT (fdsink), "fd", fd, NULL);
|
||||
g_object_set (G_OBJECT (fdsink), "fd", fd, NULL);
|
||||
|
||||
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (src));
|
||||
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (parse));
|
||||
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (mux));
|
||||
gst_bin_add (GST_BIN (pipeline), GST_ELEMENT (fdsink));
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (parse), "new_pad", mp2tomp1_new_pad, pipeline);
|
||||
g_signal_connect (G_OBJECT (parse), "new_pad", mp2tomp1_new_pad, pipeline);
|
||||
|
||||
gtk_signal_connect (GTK_OBJECT (src), "eos", GTK_SIGNAL_FUNC (eof), NULL);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eof, NULL);
|
||||
|
||||
gst_element_connect (src, "src", parse, "sink");
|
||||
gst_element_connect (mux, "src", fdsink, "sink");
|
||||
|
|
|
@ -248,9 +248,9 @@ int main(int argc,char *argv[]) {
|
|||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(parse));
|
||||
|
||||
|
||||
g_signal_connectc(G_OBJECT(parse),"new_pad",mp2tomp1, pipeline, FALSE);
|
||||
g_signal_connect(G_OBJECT(parse),"new_pad",mp2tomp1, pipeline);
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eos",G_CALLBACK(eof),NULL, FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eos",G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_pad_connect(gst_element_get_pad(src,"src"),
|
||||
gst_element_get_pad(parse,"sink"));
|
||||
|
|
|
@ -21,16 +21,16 @@ new_pad (GstElement *element, GstPad *pad, GstElement *pipeline)
|
|||
"disksink[dv] location=%s", video_out),
|
||||
GST_BIN (pipeline));
|
||||
|
||||
g_signal_connectc (gst_bin_get_by_name (GST_BIN (pipeline), "venc"), "frame_encoded",
|
||||
G_CALLBACK (frame_encoded), pipeline, FALSE);
|
||||
g_signal_connect (gst_bin_get_by_name (GST_BIN (pipeline), "venc"), "frame_encoded",
|
||||
G_CALLBACK (frame_encoded), pipeline);
|
||||
gst_pad_connect (pad, gst_element_get_pad (gst_bin_get_by_name (GST_BIN (pipeline), "vdec"), "sink"));
|
||||
}
|
||||
else if (strcmp(gst_pad_get_name(pad), "private_stream_1.0") == 0) {
|
||||
gst_parse_launch (g_strdup_printf ("ac3dec[adec] ! ffmpegenc_mp2[aenc] ! "
|
||||
"disksink[da] location=%s", audio_out), GST_BIN (pipeline));
|
||||
|
||||
g_signal_connectc (gst_bin_get_by_name (GST_BIN (pipeline), "aenc"), "frame_encoded",
|
||||
G_CALLBACK (frame_encoded), pipeline, FALSE);
|
||||
g_signal_connect (gst_bin_get_by_name (GST_BIN (pipeline), "aenc"), "frame_encoded",
|
||||
G_CALLBACK (frame_encoded), pipeline);
|
||||
gst_pad_connect (pad, gst_element_get_pad (gst_bin_get_by_name (GST_BIN (pipeline), "adec"), "sink"));
|
||||
}
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
|
@ -58,7 +58,7 @@ main (int argc, char *argv[])
|
|||
parser = gst_bin_get_by_name (GST_BIN (pipeline), "parser");
|
||||
g_assert (parser != NULL);
|
||||
|
||||
g_signal_connectc (G_OBJECT (parser), "new_pad", G_CALLBACK (new_pad), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (parser), "new_pad", G_CALLBACK (new_pad), pipeline);
|
||||
|
||||
gst_element_set_state (pipeline, GST_STATE_PLAYING);
|
||||
while (gst_bin_iterate (GST_BIN (pipeline)));
|
||||
|
|
|
@ -49,8 +49,8 @@ int main(int argc,char *argv[]) {
|
|||
gst_pad_connect(gst_element_get_pad(mp3,"src"),
|
||||
gst_element_get_pad(sink,"sink"));
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eof",
|
||||
G_CALLBACK(eof),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eof",
|
||||
G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(bin),GST_STATE_READY);
|
||||
gst_element_set_state(GST_ELEMENT(bin),GST_STATE_PLAYING);
|
||||
|
|
|
@ -46,8 +46,8 @@ int main(int argc,char *argv[]) {
|
|||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(src));
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(parse));
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL, FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_pad_connect(gst_element_get_pad(src,"src"),
|
||||
gst_element_get_pad(parse,"sink"));
|
||||
|
|
|
@ -37,8 +37,8 @@ int main(int argc,char *argv[]) {
|
|||
play = gst_elementfactory_create(playfactory,"play");
|
||||
g_return_val_if_fail(play != NULL, -1);
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL, FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(src));
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(parse));
|
||||
|
|
|
@ -50,8 +50,8 @@ int main(int argc,char *argv[]) {
|
|||
fd = open(argv[2], O_CREAT|O_RDWR|O_TRUNC);
|
||||
g_object_set(G_OBJECT(sink),"fd",fd,NULL);
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(src));
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(parse));
|
||||
|
|
|
@ -41,8 +41,8 @@ int main(int argc,char *argv[]) {
|
|||
fd = open(argv[2],O_CREAT|O_RDWR|O_TRUNC);
|
||||
g_object_set(G_OBJECT(sink),"fd",fd,NULL);
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eos",
|
||||
G_CALLBACK(eof),NULL);
|
||||
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(src));
|
||||
gst_bin_add(GST_BIN(pipeline),GST_ELEMENT(pipe));
|
||||
|
|
|
@ -77,8 +77,8 @@ int main(int argc,char *argv[]) {
|
|||
// gst_pad_connect(gst_element_get_pad(queue,"src"),
|
||||
gst_element_get_pad(playthread,"sink"));
|
||||
|
||||
g_signal_connectc(G_OBJECT(src),"eof",
|
||||
G_CALLBACK(eof),NULL, FALSE);
|
||||
g_signal_connect(G_OBJECT(src),"eof",
|
||||
G_CALLBACK(eof),NULL);
|
||||
|
||||
g_print("\nsetting up the decode thread to *NOT* thread\n");
|
||||
// gtk_object_set(GTK_OBJECT(decodethread),"create_thread",TRUE,NULL);
|
||||
|
|
|
@ -30,7 +30,7 @@ main (int argc, char *argv[])
|
|||
|
||||
autoplugger = gst_autoplugfactory_make ("static");
|
||||
|
||||
g_signal_connectc (G_OBJECT (autoplugger), "new_object", new_object_added, NULL,FALSE);
|
||||
g_signal_connect (G_OBJECT (autoplugger), "new_object", new_object_added, NULL);
|
||||
|
||||
element = gst_autoplug_to_caps (autoplugger, testcaps,
|
||||
gst_pad_get_caps (gst_element_get_pad (osssink, "sink")),
|
||||
|
|
|
@ -43,8 +43,8 @@ main(int argc,char *argv[])
|
|||
gst_element_connect(src,"src",identity,"sink");
|
||||
gst_element_connect(identity,"src",sink,"sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (pipeline), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (pipeline), "eos", eos_signal, NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -62,8 +62,8 @@ main(int argc,char *argv[])
|
|||
gst_element_connect(src2,"src",identity2,"sink");
|
||||
gst_element_connect(identity2,"src",sink2,"sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (pipeline), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (pipeline), "eos", eos_signal, NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -58,8 +58,8 @@ main(int argc,char *argv[])
|
|||
gst_element_connect(src,"src1",identity2,"sink");
|
||||
gst_element_connect(identity2,"src",sink2,"sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (pipeline), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (pipeline), "eos", eos_signal, NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -67,8 +67,8 @@ main(int argc,char *argv[])
|
|||
gst_element_connect(src2,"src",identity2,"sink");
|
||||
gst_element_connect(identity2,"src",sink2,"sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (pipeline), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (pipeline), "eos", eos_signal, NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -68,10 +68,10 @@ main(int argc,char *argv[])
|
|||
gst_element_connect(src2,"src",identity2,"sink");
|
||||
gst_element_connect(identity2,"src",sink2,"sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (src2), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (pipeline), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (thread), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (src2), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (pipeline), "eos", eos_signal, NULL);
|
||||
g_signal_connect (G_OBJECT (thread), "eos", eos_signal_element, NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -64,10 +64,10 @@ main(int argc,char *argv[])
|
|||
gst_element_connect(queue,"src",identity,"sink");
|
||||
gst_element_connect(identity,"src",sink,"sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src2), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (queue), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (pipeline), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (thread), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src2), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (queue), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (pipeline), "eos", eos_signal, NULL);
|
||||
g_signal_connect (G_OBJECT (thread), "eos", eos_signal_element, NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -52,9 +52,9 @@ main(int argc,char *argv[])
|
|||
gst_element_connect(src, "src", identity, "sink");
|
||||
gst_element_connect(identity, "src", sink, "sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (bin), "eos", eos_signal_element, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (thread), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (bin), "eos", eos_signal_element, NULL);
|
||||
g_signal_connect (G_OBJECT (thread), "eos", eos_signal, NULL);
|
||||
|
||||
gst_element_set_state (GST_ELEMENT (thread), GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ int main (int argc,char *argv[]) {
|
|||
fakesink = gst_elementfactory_make("fakesink","fakesink");
|
||||
|
||||
g_object_set(G_OBJECT(disksrc),"location","events.c",NULL);
|
||||
g_signal_connectc(G_OBJECT(fakesink),"eos",eos_handler,NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(fakesink),"eos",eos_handler,NULL);
|
||||
|
||||
gst_bin_add(GST_BIN(pipeline),disksrc);
|
||||
gst_bin_add(GST_BIN(pipeline),fakesink);
|
||||
|
|
|
@ -49,8 +49,8 @@ int main(int argc,char *argv[]) {
|
|||
g_object_set(G_OBJECT(src),"location","/home/omega/media/AlienSong.mpg",NULL);
|
||||
parse = gst_elementfactory_make("mpeg1parse","parse");
|
||||
|
||||
g_signal_connectc(G_OBJECT(parse),"new_pad",
|
||||
G_CALLBACK(new_pad),pipeline,FALSE);
|
||||
g_signal_connect(G_OBJECT(parse),"new_pad",
|
||||
G_CALLBACK(new_pad),pipeline);
|
||||
|
||||
gst_bin_add(GST_BIN(sourcethread),src);
|
||||
gst_bin_add(GST_BIN(sourcethread),parse);
|
||||
|
|
|
@ -62,8 +62,8 @@ main(int argc,char *argv[])
|
|||
gst_element_request_pad_by_name (aggregator, "sink%d"));
|
||||
gst_element_connect (aggregator, "src", sink, "sink");
|
||||
|
||||
g_signal_connectc (G_OBJECT (src), "eos", eos_signal, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT (sink), "handoff", handoff_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (src), "eos", eos_signal, NULL);
|
||||
g_signal_connect (G_OBJECT (sink), "handoff", handoff_signal, NULL);
|
||||
|
||||
gst_element_set_state (GST_ELEMENT (pipeline), GST_STATE_PLAYING);
|
||||
|
||||
|
|
|
@ -169,10 +169,10 @@ int main (int argc, char *argv[])
|
|||
|
||||
/* set signal handlers */
|
||||
g_print ("setting signal handlers\n");
|
||||
g_signal_connectc (G_OBJECT(cutter), "cut_start",
|
||||
(GCallback)cut_start_signal, NULL, FALSE);
|
||||
g_signal_connectc (G_OBJECT(cutter), "cut_stop",
|
||||
(GCallback)cut_stop_signal, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT(cutter), "cut_start",
|
||||
(GCallback)cut_start_signal, NULL);
|
||||
g_signal_connect (G_OBJECT(cutter), "cut_stop",
|
||||
(GCallback)cut_stop_signal, NULL);
|
||||
|
||||
/* start playing */
|
||||
g_print ("setting to play\n");
|
||||
|
|
|
@ -28,8 +28,8 @@ int main(int argc,char *argv[])
|
|||
/* create a disk reader */
|
||||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL);
|
||||
|
||||
/* now it's time to get the parser */
|
||||
parse = gst_elementfactory_make("mp3parse","parse");
|
||||
|
|
|
@ -105,12 +105,12 @@ main (int argc, char *argv[])
|
|||
|
||||
autobin = gst_bin_new ("autobin");
|
||||
cache = gst_elementfactory_make ("autoplugcache", "cache");
|
||||
g_signal_connectc (G_OBJECT (cache), "cache_empty",
|
||||
G_CALLBACK (gst_play_cache_empty), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (cache), "cache_empty",
|
||||
G_CALLBACK (gst_play_cache_empty), pipeline);
|
||||
|
||||
typefind = gst_elementfactory_make ("typefind", "typefind");
|
||||
g_signal_connectc (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (gst_play_have_type), pipeline, FALSE);
|
||||
g_signal_connect (G_OBJECT (typefind), "have_type",
|
||||
G_CALLBACK (gst_play_have_type), pipeline);
|
||||
gst_bin_add (GST_BIN (autobin), cache);
|
||||
gst_bin_add (GST_BIN (autobin), typefind);
|
||||
|
||||
|
|
|
@ -276,8 +276,8 @@ create_input_channel (int id, char* location)
|
|||
gst_bin_add(GST_BIN(channel->pipe), channel->disksrc);
|
||||
|
||||
/* connect signal to eos of disksrc */
|
||||
g_signal_connectc (G_OBJECT(channel->disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL,FALSE);
|
||||
g_signal_connect (G_OBJECT(channel->disksrc),"eos",
|
||||
G_CALLBACK(eos),NULL);
|
||||
|
||||
|
||||
#ifdef DEBUG
|
||||
|
|
|
@ -169,7 +169,7 @@ gst_example_class_init (GstExampleClass *klass)
|
|||
* called asdf. The signal will also pass a pointer to the listeners
|
||||
* which happens to be the example element itself */
|
||||
gst_example_signals[ASDF] =
|
||||
g_signal_newc("asdf", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
g_signal_new("asdf", G_TYPE_FROM_CLASS(klass), G_SIGNAL_RUN_LAST,
|
||||
G_STRUCT_OFFSET (GstExampleClass, asdf), NULL, NULL,
|
||||
g_cclosure_marshal_VOID__POINTER, G_TYPE_NONE, 1,
|
||||
GST_TYPE_EXAMPLE);
|
||||
|
|
|
@ -36,8 +36,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc (G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect (G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
queue = gst_elementfactory_make("queue", "queue");
|
||||
|
||||
|
|
|
@ -36,8 +36,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
queue = gst_elementfactory_make("queue", "queue");
|
||||
|
||||
|
|
|
@ -38,8 +38,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
queue = gst_elementfactory_make("queue", "queue");
|
||||
queue2 = gst_elementfactory_make("queue", "queue2");
|
||||
|
|
|
@ -37,8 +37,8 @@ int main(int argc,char *argv[])
|
|||
disksrc = gst_elementfactory_make("disksrc", "disk_source");
|
||||
g_assert(disksrc != NULL);
|
||||
g_object_set(G_OBJECT(disksrc),"location", argv[1],NULL);
|
||||
g_signal_connectc(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread, FALSE);
|
||||
g_signal_connect(G_OBJECT(disksrc),"eos",
|
||||
G_CALLBACK(eos), thread);
|
||||
|
||||
/* and an audio sink */
|
||||
osssink = gst_elementfactory_make("osssink", "play_audio");
|
||||
|
|
|
@ -43,8 +43,8 @@ main(int argc, char *argv[])
|
|||
gst_bin_add(GST_BIN(bin), disksrc);
|
||||
gst_bin_add(GST_BIN(bin), typefind);
|
||||
|
||||
g_signal_connectc (G_OBJECT (typefind), "have_type",
|
||||
type_found, NULL, FALSE);
|
||||
g_signal_connect (G_OBJECT (typefind), "have_type",
|
||||
type_found, NULL);
|
||||
|
||||
gst_pad_connect(gst_element_get_pad(disksrc,"src"),
|
||||
gst_element_get_pad(typefind,"sink"));
|
||||
|
|
|
@ -32,12 +32,12 @@ int main(int argc,char *argv[])
|
|||
//thread = gst_thread_new("thread");
|
||||
thread = gst_elementfactory_make("thread", "thread");
|
||||
g_assert(thread != NULL);
|
||||
g_signal_connectc (G_OBJECT (thread), "object_saved", object_saved, g_strdup ("decoder thread"), FALSE);
|
||||
g_signal_connect (G_OBJECT (thread), "object_saved", object_saved, g_strdup ("decoder thread"));
|
||||
|
||||
thread2 = gst_elementfactory_make("thread", "thread2");
|
||||
//thread2 = gst_thread_new("thread2");
|
||||
g_assert(thread2 != NULL);
|
||||
g_signal_connectc (G_OBJECT (thread2), "object_saved", object_saved, g_strdup ("render thread"), FALSE);
|
||||
g_signal_connect (G_OBJECT (thread2), "object_saved", object_saved, g_strdup ("render thread"));
|
||||
|
||||
/* create a new bin to hold the elements */
|
||||
bin = gst_bin_new("bin");
|
||||
|
|
|
@ -35,7 +35,7 @@ int main(int argc,char *argv[])
|
|||
|
||||
xml = gst_xml_new ();
|
||||
|
||||
g_signal_connectc (G_OBJECT (xml), "object_loaded", xml_loaded, xml, FALSE);
|
||||
g_signal_connect (G_OBJECT (xml), "object_loaded", xml_loaded, xml);
|
||||
|
||||
ret = gst_xml_parse_file(xml, "xmlTest.gst", NULL);
|
||||
g_assert (ret == TRUE);
|
||||
|
|
|
@ -40,8 +40,8 @@ int main(int argc,char *argv[]) {
|
|||
gst_element_connect(paranoia,"src",queue,"sink");
|
||||
gst_element_connect(queue,"src",audio_thread,"sink");
|
||||
|
||||
g_signal_connectc(G_OBJECT(gst_element_get_pad(paranoia,"src")),"eos",
|
||||
G_CALLBACK(paranoia_eos),NULL,FALSE);
|
||||
g_signal_connect(G_OBJECT(gst_element_get_pad(paranoia,"src")),"eos",
|
||||
G_CALLBACK(paranoia_eos),NULL);
|
||||
|
||||
gst_element_set_state(GST_ELEMENT(pipeline),GST_STATE_PLAYING);
|
||||
if (GST_STATE(paranoia) != GST_STATE_PLAYING) fprintf(stderr,"error: state not set\n");
|
||||
|
|
|
@ -54,8 +54,8 @@ int main(int argc,char *argv[])
|
|||
|
||||
src = gst_bin_get_by_name (GST_BIN (bin), "fakesrc");
|
||||
if (src) {
|
||||
g_signal_connectc (G_OBJECT(src), "handoff",
|
||||
G_CALLBACK(buffer_handoff_src), bin,FALSE);
|
||||
g_signal_connect (G_OBJECT(src), "handoff",
|
||||
G_CALLBACK(buffer_handoff_src), bin);
|
||||
}
|
||||
else {
|
||||
g_print ("could not find src element\n");
|
||||
|
@ -64,8 +64,8 @@ int main(int argc,char *argv[])
|
|||
|
||||
sink = gst_bin_get_by_name (GST_BIN (bin), "fakesink");
|
||||
if (sink) {
|
||||
g_signal_connectc (G_OBJECT(sink), "handoff",
|
||||
G_CALLBACK(buffer_handoff_sink), bin,FALSE);
|
||||
g_signal_connect (G_OBJECT(sink), "handoff",
|
||||
G_CALLBACK(buffer_handoff_sink), bin);
|
||||
}
|
||||
else {
|
||||
g_print ("could not find sink element\n");
|
||||
|
|
|
@ -25,16 +25,16 @@ int main(int argc,char *argv[]) {
|
|||
bin = gst_bin_new("bin");
|
||||
g_return_val_if_fail(1,bin != NULL);
|
||||
|
||||
g_signal_connectc (G_OBJECT(src),"state_change",
|
||||
G_CALLBACK(state_change),NULL,FALSE);
|
||||
g_signal_connectc (G_OBJECT(subbin),"state_change",
|
||||
G_CALLBACK(state_change),NULL,FALSE);
|
||||
g_signal_connectc (G_OBJECT(filter),"state_change",
|
||||
G_CALLBACK(state_change),NULL,FALSE);
|
||||
g_signal_connectc (G_OBJECT(sink),"state_change",
|
||||
G_CALLBACK(state_change),NULL,FALSE);
|
||||
g_signal_connectc (G_OBJECT(bin),"state_change",
|
||||
G_CALLBACK(state_change),NULL,FALSE);
|
||||
g_signal_connect (G_OBJECT(src),"state_change",
|
||||
G_CALLBACK(state_change),NULL);
|
||||
g_signal_connect (G_OBJECT(subbin),"state_change",
|
||||
G_CALLBACK(state_change),NULL);
|
||||
g_signal_connect (G_OBJECT(filter),"state_change",
|
||||
G_CALLBACK(state_change),NULL);
|
||||
g_signal_connect (G_OBJECT(sink),"state_change",
|
||||
G_CALLBACK(state_change),NULL);
|
||||
g_signal_connect (G_OBJECT(bin),"state_change",
|
||||
G_CALLBACK(state_change),NULL);
|
||||
|
||||
g_print("STATES: element '%s' starts at state %d(%s)\n",gst_element_get_name(src),
|
||||
GST_STATE(src),gst_element_statename(GST_STATE(src)));
|
||||
|
|
Loading…
Reference in a new issue