Commit 70f589da authored by Ronald S. Bultje's avatar Ronald S. Bultje

gst/playback/gstplaybin.c: Enable videoscale.

Original commit message from CVS:
* gst/playback/gstplaybin.c: (gen_video_element):
Enable videoscale.
parent 65504292
2005-08-05 Ronald S. Bultje <>
* gst/playback/gstplaybin.c: (gen_video_element):
Enable videoscale.
2005-08-05 Ronald S. Bultje <>
* gst-libs/gst/gconf/gconf.c:
......@@ -374,7 +374,7 @@ gen_video_element (GstPlayBin * play_bin)
GstElement *element;
GstElement *conv;
//GstElement *scale;
GstElement *scale;
GstElement *sink;
GstElement *identity;
GstPad *pad;
......@@ -390,7 +390,7 @@ gen_video_element (GstPlayBin * play_bin)
g_object_set (identity, "silent", TRUE, NULL);
g_signal_connect (identity, "handoff", G_CALLBACK (handoff), play_bin);
conv = gst_element_factory_make ("ffmpegcolorspace", "vconv");
//scale = gst_element_factory_make ("videoscale", "vscale");
scale = gst_element_factory_make ("videoscale", "vscale");
if (play_bin->video_sink) {
sink = play_bin->video_sink;
} else {
......@@ -401,11 +401,11 @@ gen_video_element (GstPlayBin * play_bin)
gst_bin_add (GST_BIN (element), identity);
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), sink);
gst_element_link_pads (identity, "src", conv, "sink");
gst_element_link_pads (conv, "src", /*scale, "sink");
gst_element_link_pads (scale, "src", */ sink, "sink");
gst_element_link_pads (conv, "src", scale, "sink");
gst_element_link_pads (scale, "src", sink, "sink");
pad = gst_element_get_pad (identity, "sink");
gst_element_add_pad (element, gst_ghost_pad_new ("sink", pad));
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment