mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-04 14:38:48 +00:00
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.
This commit is contained in:
parent
f20b0dcdba
commit
d3d46ebb12
2 changed files with 12 additions and 3 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2007-06-08 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
2007-06-06 Tim-Philipp Müller <tim at centricular dot net>
|
2007-06-06 Tim-Philipp Müller <tim at centricular dot net>
|
||||||
|
|
||||||
* configure.ac:
|
* configure.ac:
|
||||||
|
|
|
@ -34,6 +34,8 @@ GST_DEBUG_CATEGORY_STATIC (videocrop_test_debug);
|
||||||
#define TIME_PER_TEST 10 /* seconds each format is tested */
|
#define TIME_PER_TEST 10 /* seconds each format is tested */
|
||||||
#define FRAMERATE 15 /* frames per second */
|
#define FRAMERATE 15 /* frames per second */
|
||||||
|
|
||||||
|
#define DEFAULT_VIDEOSINK "xvimagesink"
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
check_bus_for_errors (GstBus * bus, GstClockTime max_wait_time)
|
check_bus_for_errors (GstBus * bus, GstClockTime max_wait_time)
|
||||||
{
|
{
|
||||||
|
@ -173,7 +175,7 @@ main (int argc, char **argv)
|
||||||
{
|
{
|
||||||
static const GOptionEntry test_goptions[] = {
|
static const GOptionEntry test_goptions[] = {
|
||||||
{"videosink", '\0', 0, G_OPTION_ARG_STRING, &opt_videosink_str,
|
{"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,
|
{"caps", '\0', 0, G_OPTION_ARG_STRING, &opt_filtercaps_str,
|
||||||
"filter caps to narrow down formats to test", NULL},
|
"filter caps to narrow down formats to test", NULL},
|
||||||
{"with-ffmpegcolorspace", '\0', 0, G_OPTION_ARG_NONE,
|
{"with-ffmpegcolorspace", '\0', 0, G_OPTION_ARG_NONE,
|
||||||
|
@ -245,8 +247,8 @@ main (int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (sink == NULL) {
|
if (sink == NULL) {
|
||||||
g_print ("Trying videosink '%s' ...", "autovideosink");
|
g_print ("Trying videosink '%s' ...", DEFAULT_VIDEOSINK);
|
||||||
sink = gst_element_factory_make ("autovideosink", "sink");
|
sink = gst_element_factory_make (DEFAULT_VIDEOSINK, "sink");
|
||||||
g_print ("%s\n", (sink) ? "ok" : "element couldn't be created");
|
g_print ("%s\n", (sink) ? "ok" : "element couldn't be created");
|
||||||
}
|
}
|
||||||
if (sink == NULL) {
|
if (sink == NULL) {
|
||||||
|
|
Loading…
Reference in a new issue