info: start adding gstreamer discoverer

This commit is contained in:
Stefan Sauer 2010-10-17 23:21:16 +03:00
parent 076bfdceb6
commit cd1f50a971
2 changed files with 12 additions and 2 deletions

View File

@ -16,8 +16,8 @@ AC_PROG_INSTALL
AC_PROG_INTLTOOL([0.35]) AC_PROG_INTLTOOL([0.35])
PKG_PROG_PKG_CONFIG PKG_PROG_PKG_CONFIG
pkg_modules="gtk+-2.0 >= 2.14.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" 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]) PKG_CHECK_MODULES(MI, [$pkg_modules])
AC_SUBST(MI_CFLAGS) AC_SUBST(MI_CFLAGS)
AC_SUBST(MI_LIBS) AC_SUBST(MI_LIBS)

View File

@ -18,24 +18,34 @@
*/ */
using Gtk; using Gtk;
using Gst;
public class MediaInfo.Info : VBox public class MediaInfo.Info : VBox
{ {
private Label uri; private Label uri;
//private Discoverer dc;
public Info () public Info ()
{ {
// configure the view
set_homogeneous (false); set_homogeneous (false);
// add widgets
uri = new Label (""); uri = new Label ("");
pack_start (uri, false, false, 0); pack_start (uri, false, false, 0);
show_all (); show_all ();
// set up the gstreamer components
//dc = new Discoverer (Gst.SECONDS * 10, null);
} }
public bool discover (string uri) public bool discover (string uri)
{ {
this.uri.set_text (uri); this.uri.set_text (uri);
//DiscovererInfo info = dc.discover_uri (uri, null);
return (true); return (true);
} }
} }