mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 04:31:06 +00:00
info: start adding gstreamer discoverer
This commit is contained in:
parent
076bfdceb6
commit
cd1f50a971
2 changed files with 12 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue