1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
From eb2753337944d24419dc13968137bf06a5e8f77c 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/24] 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 bb41a03..dedd3be 100644
--- a/gst/playback/gstplaysink.c
+++ b/gst/playback/gstplaysink.c
@@ -1267,13 +1267,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) {
@@ -1285,27 +1285,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.1
|