summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2013-12-02 12:34:32 -0500
committerMike Blumenkrantz <zmike@samsung.com>2013-12-02 12:39:49 -0500
commitfe045f69891bded3e3429d2dc2033287aaa29e8e (patch)
treef486cf413195309c185be27b0638aedf95a13107
parenta98fc0457e06167d96dfc0111c64fb3352f5dac0 (diff)
downloadevas_generic_loaders-fe045f69891bded3e3429d2dc2033287aaa29e8e.tar.gz
Revert "bugfix: support gstreamer 0.10 and 1.0"
This reverts commit e629f406a55489bcbf46f1e6b76b47fdfa72094b. somehow this went from compiling to not compiling in the time that I committed. I blame cedric.
-rw-r--r--configure.ac20
-rw-r--r--src/bin/gst/main.c4
2 files changed, 5 insertions, 19 deletions
diff --git a/configure.ac b/configure.ac
index 11ac25f..dcc44db 100644
--- a/configure.ac
+++ b/configure.ac
@@ -147,9 +147,9 @@ if test "x$want_svg" = "xyes" ; then
else
have_svg=no
fi
-GST_REQS=1.0
-GSTPLUG_REQS=1.0
-GST_MAJORMINOR=1.0
+GST_REQS=0.10.13
+GSTPLUG_REQS=0.10.13
+GST_MAJORMINOR=0.10
AC_ARG_ENABLE([gstreamer],
[AC_HELP_STRING([--disable-gstreamer], [disable gstreamer support @<:@default==enabled@:>@])],
@@ -163,23 +163,9 @@ if test "x$want_gstreamer" = "xyes" ; then
],
[have_gst="yes"],
[have_gst="no"])
- if test "x$have_gst" = "xno" ; then
- GST_REQS=0.10.13
- GSTPLUG_REQS=0.10.13
- GST_MAJORMINOR=0.10
- PKG_CHECK_MODULES([GSTREAMER],
- [gstreamer-$GST_MAJORMINOR >= $GST_REQS
- gstreamer-plugins-base-$GST_MAJORMINOR >= $GSTPLUG_REQS
- ],
- [have_gst="yes"
- AC_DEFINE_UNQUOTED([USE_OLD_GST], [1], [using older gstreamer])
- ],
- [have_gst="no"])
- fi
else
have_gst=no
fi
-
AM_CONDITIONAL([HAVE_GST], [test "x${have_gst}" = "xyes"])
AM_CONDITIONAL([HAVE_PDF], [test "x${have_poppler}" = "xyes"])
AM_CONDITIONAL([HAVE_PS], [test "x${have_ps}" = "xyes"])
diff --git a/src/bin/gst/main.c b/src/bin/gst/main.c
index 2f396ba..140fe02 100644
--- a/src/bin/gst/main.c
+++ b/src/bin/gst/main.c
@@ -78,7 +78,7 @@ _gst_init(const char *filename)
g_error_free (error);
goto gst_shutdown;
}
-#ifndef USE_OLD_GST
+
g_object_get(G_OBJECT(pipeline),
"n-video", &vidstr,
NULL);
@@ -87,7 +87,7 @@ _gst_init(const char *filename)
D("no video stream\n");
goto gst_shutdown;
}
-#endif
+
sink = gst_bin_get_by_name (GST_BIN (pipeline), "sink");
ret = gst_element_set_state (pipeline, GST_STATE_PAUSED);