mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst/playback/gstplaybin.c: Remove some wrong code. Doesn't work yet.
Original commit message from CVS: * gst/playback/gstplaybin.c: (gen_vis_element): Remove some wrong code. Doesn't work yet.
This commit is contained in:
parent
62c46c1480
commit
677ce7d8eb
2 changed files with 18 additions and 9 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-05-19 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/playback/gstplaybin.c: (gen_vis_element):
|
||||
Remove some wrong code. Doesn't work yet.
|
||||
|
||||
2005-05-19 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst-libs/gst/net/Makefile.am:
|
||||
|
|
|
@ -569,23 +569,22 @@ gen_vis_element (GstPlayBin * play_bin)
|
|||
GstElement *vsink;
|
||||
GstElement *conv;
|
||||
GstElement *vis;
|
||||
GstElement *vqueue;
|
||||
GstElement *vthread;
|
||||
GstPad *pad;
|
||||
GstElement *vqueue, *aqueue;
|
||||
GstPad *pad, *rpad;
|
||||
|
||||
element = gst_bin_new ("visbin");
|
||||
tee = gst_element_factory_make ("tee", "tee");
|
||||
|
||||
vqueue = gst_element_factory_make ("queue", "vqueue");
|
||||
vthread = gst_element_factory_make ("thread", "vthread");
|
||||
aqueue = gst_element_factory_make ("queue", "aqueue");
|
||||
|
||||
asink = gen_audio_element (play_bin);
|
||||
vsink = gen_video_element (play_bin);
|
||||
|
||||
gst_bin_add (GST_BIN (element), asink);
|
||||
gst_bin_add (GST_BIN (element), vqueue);
|
||||
gst_bin_add (GST_BIN (vthread), vsink);
|
||||
gst_bin_add (GST_BIN (element), vthread);
|
||||
gst_bin_add (GST_BIN (element), aqueue);
|
||||
gst_bin_add (GST_BIN (element), vsink);
|
||||
gst_bin_add (GST_BIN (element), tee);
|
||||
|
||||
conv = gst_element_factory_make ("audioconvert", "aconv");
|
||||
|
@ -604,12 +603,17 @@ gen_vis_element (GstPlayBin * play_bin)
|
|||
|
||||
gst_element_link_pads (vqueue, "src", vsink, "sink");
|
||||
|
||||
pad = gst_element_get_pad (asink, "sink");
|
||||
gst_pad_link (gst_element_get_request_pad (tee, "src%d"), pad);
|
||||
pad = gst_element_get_pad (aqueue, "sink");
|
||||
rpad = gst_element_get_request_pad (tee, "src%d");
|
||||
gst_pad_link (rpad, pad);
|
||||
g_object_unref (G_OBJECT (rpad));
|
||||
g_object_unref (G_OBJECT (pad));
|
||||
gst_element_link_pads (aqueue, "src", asink, "sink");
|
||||
|
||||
pad = gst_element_get_pad (conv, "sink");
|
||||
gst_pad_link (gst_element_get_request_pad (tee, "src%d"), pad);
|
||||
rpad = gst_element_get_request_pad (tee, "src%d");
|
||||
gst_pad_link (rpad, pad);
|
||||
g_object_unref (G_OBJECT (rpad));
|
||||
g_object_unref (G_OBJECT (pad));
|
||||
|
||||
pad = gst_element_get_pad (tee, "sink");
|
||||
|
|
Loading…
Reference in a new issue