From cd1f50a9716f0224fec7c4e24e58e3be176f2347 Mon Sep 17 00:00:00 2001 From: Stefan Sauer Date: Sun, 17 Oct 2010 23:21:16 +0300 Subject: [PATCH] info: start adding gstreamer discoverer --- mediainfo/configure.ac | 4 ++-- mediainfo/src/mi-info.vala | 10 ++++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/mediainfo/configure.ac b/mediainfo/configure.ac index b6a46e897c..98963c0cdf 100644 --- a/mediainfo/configure.ac +++ b/mediainfo/configure.ac @@ -16,8 +16,8 @@ AC_PROG_INSTALL AC_PROG_INTLTOOL([0.35]) PKG_PROG_PKG_CONFIG -pkg_modules="gtk+-2.0 >= 2.14.0" -MI_PACKAGES="--pkg gtk+-2.0" +pkg_modules="gtk+-2.0 >= 2.14.0 gstreamer-0.10 >= 0.10.30 gstreamer-plugins-base-0.10 >= 0.10.30" +MI_PACKAGES="--pkg gtk+-2.0 --pkg gdk-x11-2.0 --pkg gstreamer-0.10 --pkg gstreamer-interfaces-0.10 --pkg gstreamer-pbutils-0.10" PKG_CHECK_MODULES(MI, [$pkg_modules]) AC_SUBST(MI_CFLAGS) AC_SUBST(MI_LIBS) diff --git a/mediainfo/src/mi-info.vala b/mediainfo/src/mi-info.vala index 53d0d7d23f..1ac0660b3b 100644 --- a/mediainfo/src/mi-info.vala +++ b/mediainfo/src/mi-info.vala @@ -18,24 +18,34 @@ */ using Gtk; +using Gst; public class MediaInfo.Info : VBox { private Label uri; + //private Discoverer dc; public Info () { + // configure the view set_homogeneous (false); + // add widgets uri = new Label (""); pack_start (uri, false, false, 0); show_all (); + + // set up the gstreamer components + //dc = new Discoverer (Gst.SECONDS * 10, null); } public bool discover (string uri) { this.uri.set_text (uri); + + //DiscovererInfo info = dc.discover_uri (uri, null); + return (true); } } \ No newline at end of file