-Subproject commit 8579ce0ed656e0c512b37ff70bebd54cab4d4e7d
+Subproject commit 4dab76096cb84988dc2b6366cf5bd964fe5857d7
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("modplug", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("modplug", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("wavparse", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("wavparse", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("flacdec", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("flacdec", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("siddec", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("siddec", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- parser = gst_element_factory_make ("mpegparse", "parse");
- fakesink = gst_element_factory_make ("fakesink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ parser = gst_element_factory_make_or_warn ("mpegparse", "parse");
+ fakesink = gst_element_factory_make_or_warn ("fakesink", "sink");
g_object_set (G_OBJECT (fakesink), "sync", TRUE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("vorbisfile", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("vorbisfile", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("mad", "dec");
- queue = gst_element_factory_make ("queue", "queue");
- osssink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("mad", "dec");
+ queue = gst_element_factory_make_or_warn ("queue", "queue");
+ osssink = gst_element_factory_make_or_warn ("osssink", "sink");
audio_thread = gst_thread_new ("a_decoder_thread");
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
g_object_set (G_OBJECT (src), "location", location, NULL);
- demux = gst_element_factory_make ("avidemux", "demux");
+ demux = gst_element_factory_make_or_warn ("avidemux", "demux");
seekable_elements = g_list_prepend (seekable_elements, demux);
gst_bin_add (GST_BIN (pipeline), src);
gst_element_connect (src, demux);
audio_bin = gst_bin_new ("a_decoder_bin");
- a_decoder = gst_element_factory_make ("mad", "a_dec");
+ a_decoder = gst_element_factory_make_or_warn ("mad", "a_dec");
audio_thread = gst_thread_new ("a_decoder_thread");
- audiosink = gst_element_factory_make ("osssink", "a_sink");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "a_sink");
//g_object_set (G_OBJECT (audiosink), "fragment", 0x00180008, NULL);
- a_queue = gst_element_factory_make ("queue", "a_queue");
+ a_queue = gst_element_factory_make_or_warn ("queue", "a_queue");
gst_element_connect (a_decoder, a_queue);
gst_element_connect (a_queue, audiosink);
gst_bin_add (GST_BIN (audio_bin), a_decoder);
rate_pads = g_list_prepend (rate_pads, gst_element_get_pad (a_decoder, "sink"));
video_bin = gst_bin_new ("v_decoder_bin");
- //v_decoder = gst_element_factory_make ("identity", "v_dec");
- v_decoder = gst_element_factory_make ("windec", "v_dec");
+ //v_decoder = gst_element_factory_make_or_warn ("identity", "v_dec");
+ v_decoder = gst_element_factory_make_or_warn ("windec", "v_dec");
video_thread = gst_thread_new ("v_decoder_thread");
- videosink = gst_element_factory_make ("xvideosink", "v_sink");
- //videosink = gst_element_factory_make ("fakesink", "v_sink");
+ videosink = gst_element_factory_make_or_warn ("xvideosink", "v_sink");
+ //videosink = gst_element_factory_make_or_warn ("fakesink", "v_sink");
//g_object_set (G_OBJECT (videosink), "sync", TRUE, NULL);
- v_queue = gst_element_factory_make ("queue", "v_queue");
+ v_queue = gst_element_factory_make_or_warn ("queue", "v_queue");
g_object_set (G_OBJECT (v_queue), "max_level", 10, NULL);
gst_element_connect (v_decoder, v_queue);
gst_element_connect (v_queue, videosink);
make_mpeg_pipeline (const gchar *location)
{
GstElement *pipeline, *audio_bin, *video_bin;
- GstElement *src, *demux, *a_decoder, *v_decoder, *audiosink, *videosink;
+ GstElement *src, *demux, *a_decoder, *v_decoder, *v_filter;
+ GstElement *audiosink, *videosink;
GstElement *a_queue, *audio_thread, *v_queue, *video_thread;
GstPad *seekable;
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
g_object_set (G_OBJECT (src), "location", location, NULL);
- demux = gst_element_factory_make ("mpegdemux", "demux");
+ demux = gst_element_factory_make_or_warn ("mpegdemux", "demux");
g_object_set (G_OBJECT (demux), "sync", FALSE, NULL);
seekable_elements = g_list_prepend (seekable_elements, demux);
gst_element_connect (src, demux);
audio_bin = gst_bin_new ("a_decoder_bin");
- a_decoder = gst_element_factory_make ("mad", "a_dec");
+ a_decoder = gst_element_factory_make_or_warn ("mad", "a_dec");
audio_thread = gst_thread_new ("a_decoder_thread");
- a_queue = gst_element_factory_make ("queue", "a_queue");
- audiosink = gst_element_factory_make ("osssink", "a_sink");
+ a_queue = gst_element_factory_make_or_warn ("queue", "a_queue");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "a_sink");
g_object_set (G_OBJECT (audiosink), "fragment", 0x00180008, NULL);
gst_element_connect (a_decoder, a_queue);
gst_element_connect (a_queue, audiosink);
rate_pads = g_list_prepend (rate_pads, gst_element_get_pad (a_decoder, "sink"));
video_bin = gst_bin_new ("v_decoder_bin");
- v_decoder = gst_element_factory_make ("mpeg2dec", "v_dec");
+ v_decoder = gst_element_factory_make_or_warn ("mpeg2dec", "v_dec");
video_thread = gst_thread_new ("v_decoder_thread");
- v_queue = gst_element_factory_make ("queue", "v_queue");
- videosink = gst_element_factory_make ("xvideosink", "v_sink");
- gst_element_connect (v_decoder, v_queue);
- gst_element_connect (v_queue, videosink);
- gst_bin_add (GST_BIN (video_bin), v_decoder);
- gst_bin_add (GST_BIN (video_bin), video_thread);
- gst_bin_add (GST_BIN (video_thread), v_queue);
- gst_bin_add (GST_BIN (video_thread), videosink);
+ v_queue = gst_element_factory_make_or_warn ("queue", "v_queue");
+ v_filter = gst_element_factory_make_or_warn ("colorspace", "v_filter");
+ videosink = gst_element_factory_make_or_warn ("xvideosink", "v_sink");
+ gst_element_connect_many (v_decoder, v_queue, videosink, NULL);
+ gst_bin_add_many (GST_BIN (video_bin), v_decoder, video_thread, NULL);
+ gst_bin_add_many (GST_BIN (video_thread), v_queue, videosink, NULL);
setup_dynamic_connection (demux, "video_00", gst_element_get_pad (v_decoder, "sink"), video_bin);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("modplug", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("modplug", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("wavparse", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("wavparse", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("flacdec", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("flacdec", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("siddec", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("siddec", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- parser = gst_element_factory_make ("mpegparse", "parse");
- fakesink = gst_element_factory_make ("fakesink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ parser = gst_element_factory_make_or_warn ("mpegparse", "parse");
+ fakesink = gst_element_factory_make_or_warn ("fakesink", "sink");
g_object_set (G_OBJECT (fakesink), "sync", TRUE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("vorbisfile", "decoder");
- audiosink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("vorbisfile", "decoder");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "sink");
//g_object_set (G_OBJECT (audiosink), "sync", FALSE, NULL);
g_object_set (G_OBJECT (src), "location", location, NULL);
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
- decoder = gst_element_factory_make ("mad", "dec");
- queue = gst_element_factory_make ("queue", "queue");
- osssink = gst_element_factory_make ("osssink", "sink");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
+ decoder = gst_element_factory_make_or_warn ("mad", "dec");
+ queue = gst_element_factory_make_or_warn ("queue", "queue");
+ osssink = gst_element_factory_make_or_warn ("osssink", "sink");
audio_thread = gst_thread_new ("a_decoder_thread");
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
g_object_set (G_OBJECT (src), "location", location, NULL);
- demux = gst_element_factory_make ("avidemux", "demux");
+ demux = gst_element_factory_make_or_warn ("avidemux", "demux");
seekable_elements = g_list_prepend (seekable_elements, demux);
gst_bin_add (GST_BIN (pipeline), src);
gst_element_connect (src, demux);
audio_bin = gst_bin_new ("a_decoder_bin");
- a_decoder = gst_element_factory_make ("mad", "a_dec");
+ a_decoder = gst_element_factory_make_or_warn ("mad", "a_dec");
audio_thread = gst_thread_new ("a_decoder_thread");
- audiosink = gst_element_factory_make ("osssink", "a_sink");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "a_sink");
//g_object_set (G_OBJECT (audiosink), "fragment", 0x00180008, NULL);
- a_queue = gst_element_factory_make ("queue", "a_queue");
+ a_queue = gst_element_factory_make_or_warn ("queue", "a_queue");
gst_element_connect (a_decoder, a_queue);
gst_element_connect (a_queue, audiosink);
gst_bin_add (GST_BIN (audio_bin), a_decoder);
rate_pads = g_list_prepend (rate_pads, gst_element_get_pad (a_decoder, "sink"));
video_bin = gst_bin_new ("v_decoder_bin");
- //v_decoder = gst_element_factory_make ("identity", "v_dec");
- v_decoder = gst_element_factory_make ("windec", "v_dec");
+ //v_decoder = gst_element_factory_make_or_warn ("identity", "v_dec");
+ v_decoder = gst_element_factory_make_or_warn ("windec", "v_dec");
video_thread = gst_thread_new ("v_decoder_thread");
- videosink = gst_element_factory_make ("xvideosink", "v_sink");
- //videosink = gst_element_factory_make ("fakesink", "v_sink");
+ videosink = gst_element_factory_make_or_warn ("xvideosink", "v_sink");
+ //videosink = gst_element_factory_make_or_warn ("fakesink", "v_sink");
//g_object_set (G_OBJECT (videosink), "sync", TRUE, NULL);
- v_queue = gst_element_factory_make ("queue", "v_queue");
+ v_queue = gst_element_factory_make_or_warn ("queue", "v_queue");
g_object_set (G_OBJECT (v_queue), "max_level", 10, NULL);
gst_element_connect (v_decoder, v_queue);
gst_element_connect (v_queue, videosink);
make_mpeg_pipeline (const gchar *location)
{
GstElement *pipeline, *audio_bin, *video_bin;
- GstElement *src, *demux, *a_decoder, *v_decoder, *audiosink, *videosink;
+ GstElement *src, *demux, *a_decoder, *v_decoder, *v_filter;
+ GstElement *audiosink, *videosink;
GstElement *a_queue, *audio_thread, *v_queue, *video_thread;
GstPad *seekable;
pipeline = gst_pipeline_new ("app");
- src = gst_element_factory_make (SOURCE, "src");
+ src = gst_element_factory_make_or_warn (SOURCE, "src");
g_object_set (G_OBJECT (src), "location", location, NULL);
- demux = gst_element_factory_make ("mpegdemux", "demux");
+ demux = gst_element_factory_make_or_warn ("mpegdemux", "demux");
g_object_set (G_OBJECT (demux), "sync", FALSE, NULL);
seekable_elements = g_list_prepend (seekable_elements, demux);
gst_element_connect (src, demux);
audio_bin = gst_bin_new ("a_decoder_bin");
- a_decoder = gst_element_factory_make ("mad", "a_dec");
+ a_decoder = gst_element_factory_make_or_warn ("mad", "a_dec");
audio_thread = gst_thread_new ("a_decoder_thread");
- a_queue = gst_element_factory_make ("queue", "a_queue");
- audiosink = gst_element_factory_make ("osssink", "a_sink");
+ a_queue = gst_element_factory_make_or_warn ("queue", "a_queue");
+ audiosink = gst_element_factory_make_or_warn ("osssink", "a_sink");
g_object_set (G_OBJECT (audiosink), "fragment", 0x00180008, NULL);
gst_element_connect (a_decoder, a_queue);
gst_element_connect (a_queue, audiosink);
rate_pads = g_list_prepend (rate_pads, gst_element_get_pad (a_decoder, "sink"));
video_bin = gst_bin_new ("v_decoder_bin");
- v_decoder = gst_element_factory_make ("mpeg2dec", "v_dec");
+ v_decoder = gst_element_factory_make_or_warn ("mpeg2dec", "v_dec");
video_thread = gst_thread_new ("v_decoder_thread");
- v_queue = gst_element_factory_make ("queue", "v_queue");
- videosink = gst_element_factory_make ("xvideosink", "v_sink");
- gst_element_connect (v_decoder, v_queue);
- gst_element_connect (v_queue, videosink);
- gst_bin_add (GST_BIN (video_bin), v_decoder);
- gst_bin_add (GST_BIN (video_bin), video_thread);
- gst_bin_add (GST_BIN (video_thread), v_queue);
- gst_bin_add (GST_BIN (video_thread), videosink);
+ v_queue = gst_element_factory_make_or_warn ("queue", "v_queue");
+ v_filter = gst_element_factory_make_or_warn ("colorspace", "v_filter");
+ videosink = gst_element_factory_make_or_warn ("xvideosink", "v_sink");
+ gst_element_connect_many (v_decoder, v_queue, videosink, NULL);
+ gst_bin_add_many (GST_BIN (video_bin), v_decoder, video_thread, NULL);
+ gst_bin_add_many (GST_BIN (video_thread), v_queue, videosink, NULL);
setup_dynamic_connection (demux, "video_00", gst_element_get_pad (v_decoder, "sink"), video_bin);