gst/playback/gstplaybin.c: Enable videoscale.

Original commit message from CVS:
* gst/playback/gstplaybin.c: (gen_video_element):
Enable videoscale.
This commit is contained in:
Ronald S. Bultje 2005-08-05 15:53:25 +00:00
parent 6550429258
commit 70f589da21
2 changed files with 10 additions and 5 deletions

View file

@ -1,3 +1,8 @@
2005-08-05 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst/playback/gstplaybin.c: (gen_video_element):
Enable videoscale.
2005-08-05 Ronald S. Bultje <rbultje@ronald.bitfreak.net> 2005-08-05 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* gst-libs/gst/gconf/gconf.c: * gst-libs/gst/gconf/gconf.c:

View file

@ -374,7 +374,7 @@ gen_video_element (GstPlayBin * play_bin)
GstElement *element; GstElement *element;
GstElement *conv; GstElement *conv;
//GstElement *scale; GstElement *scale;
GstElement *sink; GstElement *sink;
GstElement *identity; GstElement *identity;
GstPad *pad; GstPad *pad;
@ -390,7 +390,7 @@ gen_video_element (GstPlayBin * play_bin)
g_object_set (identity, "silent", TRUE, NULL); g_object_set (identity, "silent", TRUE, NULL);
g_signal_connect (identity, "handoff", G_CALLBACK (handoff), play_bin); g_signal_connect (identity, "handoff", G_CALLBACK (handoff), play_bin);
conv = gst_element_factory_make ("ffmpegcolorspace", "vconv"); 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) { if (play_bin->video_sink) {
sink = play_bin->video_sink; sink = play_bin->video_sink;
} else { } else {
@ -401,11 +401,11 @@ gen_video_element (GstPlayBin * play_bin)
gst_bin_add (GST_BIN (element), identity); gst_bin_add (GST_BIN (element), identity);
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), sink); gst_bin_add (GST_BIN (element), sink);
gst_element_link_pads (identity, "src", conv, "sink"); gst_element_link_pads (identity, "src", conv, "sink");
gst_element_link_pads (conv, "src", /*scale, "sink"); gst_element_link_pads (conv, "src", scale, "sink");
gst_element_link_pads (scale, "src", */ sink, "sink"); gst_element_link_pads (scale, "src", sink, "sink");
pad = gst_element_get_pad (identity, "sink"); pad = gst_element_get_pad (identity, "sink");
gst_element_add_pad (element, gst_ghost_pad_new ("sink", pad)); gst_element_add_pad (element, gst_ghost_pad_new ("sink", pad));