mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-07 16:08:51 +00:00
info: add missing libs and enable the overlay code
This commit is contained in:
parent
3b224f3b02
commit
e20d4504d3
2 changed files with 7 additions and 7 deletions
|
@ -17,7 +17,7 @@ gst_mi_SOURCES = \
|
||||||
mi-info.vala
|
mi-info.vala
|
||||||
|
|
||||||
gst_mi_LDADD = \
|
gst_mi_LDADD = \
|
||||||
$(MI_LIBS)
|
$(MI_LIBS) -lgstinterfaces-0.10 -lpbutils-0.10
|
||||||
|
|
||||||
BUILT_SOURCES = $(gst_mi_SOURCES:.vala=.c)
|
BUILT_SOURCES = $(gst_mi_SOURCES:.vala=.c)
|
||||||
|
|
||||||
|
|
|
@ -46,8 +46,6 @@ public class MediaInfo.Info : VBox
|
||||||
//dc = new Discoverer (Gst.SECONDS * 10, null);
|
//dc = new Discoverer (Gst.SECONDS * 10, null);
|
||||||
|
|
||||||
pb = ElementFactory.make ("playbin2", "player") as Pipeline;
|
pb = ElementFactory.make ("playbin2", "player") as Pipeline;
|
||||||
// FIXME: need bus callback for:
|
|
||||||
// xoverlay.set_xwindow_id (Gdk.x11_drawable_get_xid (this.drawing_area.window));
|
|
||||||
Gst.Bus bus = pb.get_bus ();
|
Gst.Bus bus = pb.get_bus ();
|
||||||
bus.add_signal_watch ();
|
bus.add_signal_watch ();
|
||||||
bus.message["element"].connect (on_element_message);
|
bus.message["element"].connect (on_element_message);
|
||||||
|
@ -58,7 +56,7 @@ public class MediaInfo.Info : VBox
|
||||||
|
|
||||||
public bool discover (string uri)
|
public bool discover (string uri)
|
||||||
{
|
{
|
||||||
// TODO: stop previous playback (also need destoructor)
|
// TODO: stop previous playback (also need destructor)
|
||||||
|
|
||||||
this.uri.set_text (uri);
|
this.uri.set_text (uri);
|
||||||
|
|
||||||
|
@ -79,8 +77,10 @@ public class MediaInfo.Info : VBox
|
||||||
Structure structure = message.get_structure ();
|
Structure structure = message.get_structure ();
|
||||||
if (structure.has_name ("prepare-xwindow-id"))
|
if (structure.has_name ("prepare-xwindow-id"))
|
||||||
{
|
{
|
||||||
//XOverlay xoverlay = message.src as XOverlay;
|
XOverlay xoverlay = message.src as XOverlay;
|
||||||
//xoverlay.set_xwindow_id (Gdk.x11_drawable_get_xid (this.drawing_area.window));
|
xoverlay.set_xwindow_id (Gdk.x11_drawable_get_xid (drawing_area.window));
|
||||||
|
|
||||||
|
drawing_area.unset_flags(Gtk.WidgetFlags.DOUBLE_BUFFERED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue