mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
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:
parent
6550429258
commit
70f589da21
2 changed files with 10 additions and 5 deletions
|
@ -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>
|
||||
|
||||
* 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));
|
||||
|
|
Loading…
Reference in a new issue