diff options
author | Víctor Manuel Jáquez Leal <vjaquez@igalia.com> | 2015-04-03 16:55:43 +0300 |
---|---|---|
committer | Sreerenj Balachandran <sreerenj.balachandran@intel.com> | 2015-04-03 16:55:43 +0300 |
commit | 43d8366ec6d9679d9fb66ecf803f6117f4411c40 (patch) | |
tree | e15accf35017523dfc6406cc0c2661c4ab2d97a3 /tests | |
parent | d256f1d283066a87f2930a40770d3dca8336a8d6 (diff) |
Remove HAVE_GST_VIDEO_OVERLAY_HWCAPS macro
This macro guarded the use of HAVE_GST_VIDEO_OVERLAY_HWCAPS, which was not
defined before gstreamer 0.10.35. Since the support of gstreamer-0.10 is
deprecated these guards are not required.
https://bugzilla.gnome.org/show_bug.cgi?id=745728
https://bugzilla.gnome.org/show_bug.cgi?id=732666
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-subpicture.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/tests/test-subpicture.c b/tests/test-subpicture.c index 782be089..97ca2329 100644 --- a/tests/test-subpicture.c +++ b/tests/test-subpicture.c @@ -41,12 +41,10 @@ static GOptionEntry g_options[] = { 0, G_OPTION_ARG_STRING, &g_codec_str, "codec to test", NULL }, -#ifdef HAVE_GST_VIDEO_OVERLAY_HWCAPS { "global-alpha", 'g', 0, G_OPTION_ARG_DOUBLE, &g_global_alpha, "global-alpha value", NULL }, -#endif { NULL, } }; @@ -92,10 +90,8 @@ main(int argc, char *argv[]) if (!video_output_init(&argc, argv, g_options)) g_error("failed to initialize video output subsystem"); -#ifdef HAVE_GST_VIDEO_OVERLAY_HWCAPS if (g_global_alpha != 1.0) flags |= GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA; -#endif g_print("Test subpicture\n"); @@ -145,10 +141,8 @@ main(int argc, char *argv[]) g_error("could not create video overlay"); gst_buffer_unref(buffer); -#ifdef HAVE_GST_VIDEO_OVERLAY_HWCAPS if (flags & GST_VIDEO_OVERLAY_FORMAT_FLAG_GLOBAL_ALPHA) gst_video_overlay_rectangle_set_global_alpha(overlay, g_global_alpha); -#endif compo = gst_video_overlay_composition_new(overlay); if (!compo) |