Search
SailfishOS Open Build Service
>
Projects
>
home:sledge
:
branches:nemo:devel:hw:ti:omap4:common
>
gst-plugins-base
> 0016-modify-playbin-to-use-stridetransform.patch
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File 0016-modify-playbin-to-use-stridetransform.patch of Package gst-plugins-base
From 0ec437a6f2fd44e368705dcbd7f4d9ca556bbbd3 Mon Sep 17 00:00:00 2001 From: Rob Clark <rob@ti.com> Date: Sat, 6 Feb 2010 22:10:16 -0600 Subject: [PATCH 16/38] modify playbin to use stridetransform --- gst/playback/gstplaysink.c | 29 ++++------------------------- 1 files changed, 4 insertions(+), 25 deletions(-) diff --git a/gst/playback/gstplaysink.c b/gst/playback/gstplaysink.c index 326baa6..6eb0dc6 100644 --- a/gst/playback/gstplaysink.c +++ b/gst/playback/gstplaysink.c @@ -1269,13 +1269,13 @@ gen_video_chain (GstPlaySink * playsink, gboolean raw, gboolean async) } if (raw && !(playsink->flags & GST_PLAY_FLAG_NATIVE_VIDEO)) { - GST_DEBUG_OBJECT (playsink, "creating ffmpegcolorspace"); - chain->conv = gst_element_factory_make ("ffmpegcolorspace", "vconv"); + GST_DEBUG_OBJECT (playsink, "creating stridetransform"); + chain->conv = gst_element_factory_make ("stridetransform", "vconv"); if (chain->conv == NULL) { - post_missing_element_message (playsink, "ffmpegcolorspace"); + post_missing_element_message (playsink, "stridetransform"); GST_ELEMENT_WARNING (playsink, CORE, MISSING_PLUGIN, (_("Missing element '%s' - check your GStreamer installation."), - "ffmpegcolorspace"), ("video rendering might fail")); + "stridetransform"), ("video rendering might fail")); } else { gst_bin_add (bin, chain->conv); if (prev) { @@ -1287,27 +1287,6 @@ gen_video_chain (GstPlaySink * playsink, gboolean raw, gboolean async) } prev = chain->conv; } - - GST_DEBUG_OBJECT (playsink, "creating videoscale"); - chain->scale = gst_element_factory_make ("videoscale", "vscale"); - if (chain->scale == NULL) { - post_missing_element_message (playsink, "videoscale"); - GST_ELEMENT_WARNING (playsink, CORE, MISSING_PLUGIN, - (_("Missing element '%s' - check your GStreamer installation."), - "videoscale"), ("possibly a liboil version mismatch?")); - } else { - /* Add black borders if necessary to keep the DAR */ - g_object_set (chain->scale, "add-borders", TRUE, NULL); - gst_bin_add (bin, chain->scale); - if (prev) { - if (!gst_element_link_pads_full (prev, "src", chain->scale, "sink", - GST_PAD_LINK_CHECK_TEMPLATE_CAPS)) - goto link_failed; - } else { - head = chain->scale; - } - prev = chain->scale; - } } if (prev) { -- 1.7.5.4