summaryrefslogtreecommitdiffstats
path: root/tests/icles
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.net>2007-06-08 08:12:43 +0000
committerTim-Philipp Müller <tim@centricular.net>2007-06-08 08:12:43 +0000
commitd3d46ebb1281d9e3d177b4986b95cf8936495742 (patch)
treec440d8f68d9317b47dde9e0d852a79d3594b79db /tests/icles
parentf20b0dcdba0755985b129b6d48382750f4bdfce2 (diff)
downloadgst-plugins-bad-d3d46ebb1281d9e3d177b4986b95cf8936495742.tar.gz
gst-plugins-bad-d3d46ebb1281d9e3d177b4986b95cf8936495742.tar.bz2
gst-plugins-bad-d3d46ebb1281d9e3d177b4986b95cf8936495742.zip
tests/icles/videocrop-test.c: Default to xvimagesink instead of autovideosink while autovideosink/ghostpads/whatever ...
Original commit message from CVS: * tests/icles/videocrop-test.c: (main): Default to xvimagesink instead of autovideosink while autovideosink/ghostpads/whatever don't handle the way we use it in the way we expect it to.
Diffstat (limited to 'tests/icles')
-rw-r--r--tests/icles/videocrop-test.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/icles/videocrop-test.c b/tests/icles/videocrop-test.c
index ecc7b1bf..1c7ae4ba 100644
--- a/tests/icles/videocrop-test.c
+++ b/tests/icles/videocrop-test.c
@@ -34,6 +34,8 @@ GST_DEBUG_CATEGORY_STATIC (videocrop_test_debug);
#define TIME_PER_TEST 10 /* seconds each format is tested */
#define FRAMERATE 15 /* frames per second */
+#define DEFAULT_VIDEOSINK "xvimagesink"
+
static gboolean
check_bus_for_errors (GstBus * bus, GstClockTime max_wait_time)
{
@@ -173,7 +175,7 @@ main (int argc, char **argv)
{
static const GOptionEntry test_goptions[] = {
{"videosink", '\0', 0, G_OPTION_ARG_STRING, &opt_videosink_str,
- "videosink to use (default: autovideosink)", NULL},
+ "videosink to use (default: " DEFAULT_VIDEOSINK ")", NULL},
{"caps", '\0', 0, G_OPTION_ARG_STRING, &opt_filtercaps_str,
"filter caps to narrow down formats to test", NULL},
{"with-ffmpegcolorspace", '\0', 0, G_OPTION_ARG_NONE,
@@ -245,8 +247,8 @@ main (int argc, char **argv)
}
if (sink == NULL) {
- g_print ("Trying videosink '%s' ...", "autovideosink");
- sink = gst_element_factory_make ("autovideosink", "sink");
+ g_print ("Trying videosink '%s' ...", DEFAULT_VIDEOSINK);
+ sink = gst_element_factory_make (DEFAULT_VIDEOSINK, "sink");
g_print ("%s\n", (sink) ? "ok" : "element couldn't be created");
}
if (sink == NULL) {