mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-03 05:05:52 +00:00
gst/playback/gstplaybin.c: Switch to auto*sink elements as default sinks; add volume element so that volume control i...
Original commit message from CVS: * gst/playback/gstplaybin.c: (gen_video_element), (gen_audio_element): Switch to auto*sink elements as default sinks; add volume element so that volume control in totem works.
This commit is contained in:
parent
fab0527680
commit
93b859a53a
|
@ -1,3 +1,10 @@
|
||||||
|
2005-07-25 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/playback/gstplaybin.c: (gen_video_element),
|
||||||
|
(gen_audio_element):
|
||||||
|
Switch to auto*sink elements as default sinks; add volume element
|
||||||
|
so that volume control in totem works.
|
||||||
|
|
||||||
2005-07-21 Wim Taymans <wim@fluendo.com>
|
2005-07-21 Wim Taymans <wim@fluendo.com>
|
||||||
|
|
||||||
* gst/playback/gstplaybasebin.c: (gen_preroll_element):
|
* gst/playback/gstplaybasebin.c: (gen_preroll_element):
|
||||||
|
|
|
@ -394,7 +394,7 @@ gen_video_element (GstPlayBin * play_bin)
|
||||||
if (play_bin->video_sink) {
|
if (play_bin->video_sink) {
|
||||||
sink = play_bin->video_sink;
|
sink = play_bin->video_sink;
|
||||||
} else {
|
} else {
|
||||||
sink = gst_element_factory_make ("xvimagesink", "videosink");
|
sink = gst_element_factory_make ("autovideosink", "videosink");
|
||||||
}
|
}
|
||||||
gst_object_ref (sink);
|
gst_object_ref (sink);
|
||||||
g_hash_table_insert (play_bin->cache, "video_sink", sink);
|
g_hash_table_insert (play_bin->cache, "video_sink", sink);
|
||||||
|
@ -508,7 +508,7 @@ gen_audio_element (GstPlayBin * play_bin)
|
||||||
if (play_bin->audio_sink) {
|
if (play_bin->audio_sink) {
|
||||||
sink = play_bin->audio_sink;
|
sink = play_bin->audio_sink;
|
||||||
} else {
|
} else {
|
||||||
sink = gst_element_factory_make ("alsasink", "audiosink");
|
sink = gst_element_factory_make ("autoaudiosink", "audiosink");
|
||||||
play_bin->audio_sink = GST_ELEMENT (gst_object_ref (sink));
|
play_bin->audio_sink = GST_ELEMENT (gst_object_ref (sink));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -517,12 +517,12 @@ gen_audio_element (GstPlayBin * play_bin)
|
||||||
|
|
||||||
gst_bin_add (GST_BIN (element), conv);
|
gst_bin_add (GST_BIN (element), conv);
|
||||||
//gst_bin_add (GST_BIN (element), scale);
|
//gst_bin_add (GST_BIN (element), scale);
|
||||||
//gst_bin_add (GST_BIN (element), volume);
|
gst_bin_add (GST_BIN (element), volume);
|
||||||
gst_bin_add (GST_BIN (element), sink);
|
gst_bin_add (GST_BIN (element), sink);
|
||||||
|
|
||||||
gst_element_link_pads (conv, "src", /*scale, "sink");
|
gst_element_link_pads (conv, "src", /*scale, "sink");
|
||||||
gst_element_link_pads (scale, "src", volume, "sink");
|
gst_element_link_pads (scale, "src", */ volume, "sink");
|
||||||
gst_element_link_pads (volume, "src", */ sink, "sink");
|
gst_element_link_pads (volume, "src", sink, "sink");
|
||||||
|
|
||||||
pad = gst_element_get_pad (conv, "sink");
|
pad = gst_element_get_pad (conv, "sink");
|
||||||
gst_element_add_ghost_pad (element, pad, "sink");
|
gst_element_add_ghost_pad (element, pad, "sink");
|
||||||
|
|
Loading…
Reference in a new issue