Merge lp:~laney/ubiquity/webcam-gst-1.0 into lp:ubiquity

Proposed by Iain Lane
Status: Merged
Merged at revision: 5808
Proposed branch: lp:~laney/ubiquity/webcam-gst-1.0
Merge into: lp:ubiquity
Diff against target: 172 lines (+22/-18)
8 files modified
configure.ac (+2/-2)
d-i/update-control (+2/-1)
debian/changelog (+7/-3)
debian/control (+2/-2)
src/webcam/Makefile.am (+1/-1)
src/webcam/Makefile.in (+1/-1)
src/webcam/webcam.c (+6/-7)
src/webcam/webcam.h (+1/-1)
To merge this branch: bzr merge lp:~laney/ubiquity/webcam-gst-1.0
Reviewer Review Type Date Requested Status
Dimitri John Ledkov Pending
Review via email: mp+143136@code.launchpad.net

Description of the change

Apparently I forgot to raise an MP for this when I originally did the work!

This branch switches Ubiquity to using GStreamer 1.0 for the webcam page.

I'm afraid I wasn't (yet) able to test this, due to hardware failures. Help on that front would be appreciated. :-)

To post a comment you must log in.
Revision history for this message
Dimitri John Ledkov (xnox) wrote :

/usr/lib/python3/dist-packages/gi/types.py:113: Warning: g_object_set_valist: object class `GstVideoTestSrc' has no property named `peer-alloc'
  return info.invoke(*args, **kwargs)

But could be harmless.

Revision history for this message
Iain Lane (laney) wrote :

On Mon, Jan 14, 2013 at 05:23:20PM -0000, Dmitrijs Ledkovs wrote:
> /usr/lib/python3/dist-packages/gi/types.py:113: Warning: g_object_set_valist: object class `GstVideoTestSrc' has no property named `peer-alloc'
> return info.invoke(*args, **kwargs)
>
> But could be harmless.

Cheers - I think you can remove this now as pad-alloc has gone away.

  http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=8722bdc694d70cb92fb69a969cf95a568439a234
  http://cgit.freedesktop.org/gstreamer/gst-plugins-base/commit/?id=290605451abfe083505032cbe0a9b48a308dc2e4

But it's still in the documentation. That's probably a bug.

--
Iain Lane [ <email address hidden> ]
Debian Developer [ <email address hidden> ]
Ubuntu Developer [ <email address hidden> ]

lp:~laney/ubiquity/webcam-gst-1.0 updated
5775. By Iain Lane

webcam.c: Don't set peer-alloc any more; it doesn't exist.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'configure.ac'
2--- configure.ac 2012-10-19 14:27:05 +0000
3+++ configure.ac 2013-01-16 13:46:22 +0000
4@@ -29,8 +29,8 @@
5 if test "x$UBIQUITY_NO_GTK" = x; then
6 PKG_CHECK_MODULES(WEBCAM, [gtk+-3.0 >= $GTK3_REQUIRED
7 gio-2.0 >= $GIO_REQUIRED
8- gstreamer-0.10
9- gstreamer-interfaces-0.10
10+ gstreamer-1.0
11+ gstreamer-video-1.0
12 gudev-1.0])
13 AC_SUBST(WEBCAM_CFLAGS)
14 AC_SUBST(WEBCAM_LIBS)
15
16=== modified file 'd-i/update-control'
17--- d-i/update-control 2012-12-05 13:28:32 +0000
18+++ d-i/update-control 2013-01-16 13:46:22 +0000
19@@ -45,7 +45,8 @@
20 'keymapper (>= 0.5.3-7)',
21 'libgirepository1.0-dev',
22 'libglib2.0-dev',
23- 'libgstreamer-plugins-base0.10-dev (>= 0.10.23)',
24+ 'libgstreamer1.0-dev',
25+ 'libgstreamer-plugins-base1.0-dev',
26 'libgtk-3-dev',
27 'libgudev-1.0-dev',
28 'libindicator3-dev',
29
30=== modified file 'debian/changelog'
31--- debian/changelog 2013-01-12 00:47:22 +0000
32+++ debian/changelog 2013-01-16 13:46:22 +0000
33@@ -1,5 +1,6 @@
34 ubiquity (2.13.10) UNRELEASED; urgency=low
35
36+ [ Colin Watson ]
37 * Only force mirror/country to the value of debian-installer/country if it
38 is empty or has not been preseeded (LP: #732221).
39 * For automatic installs, set debian-installer/country to a country
40@@ -9,6 +10,9 @@
41 on first boot (LP: #1098299).
42 * Update translations from Launchpad (LP: #1096923).
43
44+ [ Iain Lane ]
45+ * Port the webcam support to GStreamer 1.0.
46+
47 -- Colin Watson <cjwatson@ubuntu.com> Fri, 11 Jan 2013 17:17:27 +0000
48
49 ubiquity (2.13.9) raring; urgency=low
50@@ -89,9 +93,9 @@
51
52 [ Dmitrijs Ledkovs ]
53 * Clear "Read release notes or update the installer" if neither action
54- are possible. (LP: #1066302)
55- * If there is only one disk & use_device recipe is used, change next step
56- button to "Install Now". (LP: #1050044)
57+ * Automatic update of included source packages: base-installer
58+ 1.122ubuntu14, debian-installer-utils 1.91ubuntu6, flash-kernel
59+ 3.0~rc.4ubuntu28.
60 * When auto-partitioning is not possible, allow to manually partition
61 the same drive installation medium is on. (LP: #1053030)
62 * Fix the question_dialog height-for-width (LP: #862270)
63
64=== modified file 'debian/control'
65--- debian/control 2012-12-05 13:28:32 +0000
66+++ debian/control 2013-01-16 13:46:22 +0000
67@@ -3,7 +3,7 @@
68 Priority: optional
69 Maintainer: Ubuntu Installer Team <ubuntu-installer@lists.ubuntu.com>
70 Uploaders: Colin Watson <cjwatson@ubuntu.com>, Evan Dandrea <ev@ubuntu.com>
71-Build-Depends: apt, autopoint, bf-utf-source, dctrl-tools, debconf (>= 1.5.43), debconf-utils, debhelper (>= 9), devio, dh-autoreconf, dh-di (>= 3), dpkg-dev (>= 1.15.7), gir1.2-soup-2.4, gir1.2-timezonemap-1.0, gir1.2-xkl-1.0, gnome-icon-theme, gobject-introspection, intltool (>= 0.40.0), intltool-debian (>= 0.30+20040212), iso-codes, isoquery, keymapper (>= 0.5.3-7), libbogl-dev, libcairo2-dev, libdebconfclient0-dev (>= 0.68), libdebian-installer4-dev (>= 0.76), libgirepository1.0-dev, libglib2.0-dev, libgstreamer-plugins-base0.10-dev (>= 0.10.23), libgtk-3-dev, libgudev-1.0-dev, libindicator3-dev, libiw-dev (>= 27+28pre9), liblocale-gettext-perl, libparted-dev, libparted0-dev (>= 2.2), locales, pep8, pkg-config, po-debconf (>= 1.0), pyflakes, python-gi-dev, python-scour, python3-all (>= 3.1), python3-apt (>= 0.7.100.3~), python3-cairo, python3-dbus, python3-gi, python3-gi-cairo, python3-mock (>= 0.7.0), python3-pyicu (>= 1.0), tzdata, ubuntu-artwork, udev, wget, xkb-data (>= 0.9), xkb-data-i18n, xvfb
72+Build-Depends: apt, autopoint, bf-utf-source, dctrl-tools, debconf (>= 1.5.43), debconf-utils, debhelper (>= 9), devio, dh-autoreconf, dh-di (>= 3), dpkg-dev (>= 1.15.7), gir1.2-soup-2.4, gir1.2-timezonemap-1.0, gir1.2-xkl-1.0, gnome-icon-theme, gobject-introspection, intltool (>= 0.40.0), intltool-debian (>= 0.30+20040212), iso-codes, isoquery, keymapper (>= 0.5.3-7), libbogl-dev, libcairo2-dev, libdebconfclient0-dev (>= 0.68), libdebian-installer4-dev (>= 0.76), libgirepository1.0-dev, libglib2.0-dev, libgstreamer-plugins-base1.0-dev, libgstreamer1.0-dev, libgtk-3-dev, libgudev-1.0-dev, libindicator3-dev, libiw-dev (>= 27+28pre9), liblocale-gettext-perl, libparted-dev, libparted0-dev (>= 2.2), locales, pep8, pkg-config, po-debconf (>= 1.0), pyflakes, python-gi-dev, python-scour, python3-all (>= 3.1), python3-apt (>= 0.7.100.3~), python3-cairo, python3-dbus, python3-gi, python3-gi-cairo, python3-mock (>= 0.7.0), python3-pyicu (>= 1.0), tzdata, ubuntu-artwork, udev, wget, xkb-data (>= 0.9), xkb-data-i18n, xvfb
73 Standards-Version: 3.6.2.1
74 X-Python3-Version: >= 3.1
75 XS-Testsuite: autopkgtest
76@@ -45,7 +45,7 @@
77 Package: ubiquity-frontend-gtk
78 Architecture: any
79 Pre-Depends: ${misc:Pre-Depends}
80-Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, ubiquity (= ${binary:Version}), python3-dbus, gir1.2-gtk-3.0, gir1.2-gdkpixbuf-2.0, gir1.2-gstreamer-0.10, gir1.2-soup-2.4, gir1.2-vte-2.90, gir1.2-webkit-3.0, iso-codes, metacity | xfwm4 | matchbox-window-manager | lubuntu-default-settings | openbox | compiz, gksu, gir1.2-xkl-1.0, gir1.2-timezonemap-1.0, python3-gi, python3-cairo, python3-gi-cairo, gir1.2-appindicator3-0.1, gstreamer0.10-plugins-good, busybox-static | busybox
81+Depends: ${shlibs:Depends}, ${misc:Depends}, ${python3:Depends}, ubiquity (= ${binary:Version}), python3-dbus, gir1.2-gtk-3.0, gir1.2-gdkpixbuf-2.0, gir1.2-gstreamer-1.0, gir1.2-soup-2.4, gir1.2-vte-2.90, gir1.2-webkit-3.0, iso-codes, metacity | xfwm4 | matchbox-window-manager | lubuntu-default-settings | openbox | compiz, gksu, gir1.2-xkl-1.0, gir1.2-timezonemap-1.0, python3-gi, python3-cairo, python3-gi-cairo, gir1.2-appindicator3-0.1, gstreamer1.0-plugins-good, busybox-static | busybox
82 Suggests: gnome-control-center
83 Conflicts: ubuntu-express-frontend-gtk, espresso-frontend-gtk, ubiquity (<< 2.4.3)
84 Replaces: ubuntu-express-frontend-gtk, espresso-frontend-gtk, ubiquity (<< 2.4.3)
85
86=== modified file 'src/webcam/Makefile.am'
87--- src/webcam/Makefile.am 2011-08-22 10:35:58 +0000
88+++ src/webcam/Makefile.am 2013-01-16 13:46:22 +0000
89@@ -21,7 +21,7 @@
90 introspection_sources = $(libubiwebcam_la_SOURCES)
91
92 UbiquityWebcam-1.0.gir: libubiwebcam.la
93-UbiquityWebcam_1_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Gst-0.10
94+UbiquityWebcam_1_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Gst-1.0
95 UbiquityWebcam_1_0_gir_CFLAGS = $(INCLUDES) --identifier-prefix=Ubiquity
96 UbiquityWebcam_1_0_gir_LIBS = libubiwebcam.la
97 UbiquityWebcam_1_0_gir_FILES = $(introspection_sources)
98
99=== modified file 'src/webcam/Makefile.in'
100--- src/webcam/Makefile.in 2012-09-27 15:48:52 +0000
101+++ src/webcam/Makefile.in 2013-01-16 13:46:22 +0000
102@@ -312,7 +312,7 @@
103 @HAVE_INTROSPECTION_TRUE@INTROSPECTION_COMPILER_ARGS = --includedir=$(srcdir)
104 @HAVE_INTROSPECTION_TRUE@INTROSPECTION_GIRS = UbiquityWebcam-1.0.gir
105 @HAVE_INTROSPECTION_TRUE@introspection_sources = $(libubiwebcam_la_SOURCES)
106-@HAVE_INTROSPECTION_TRUE@UbiquityWebcam_1_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Gst-0.10
107+@HAVE_INTROSPECTION_TRUE@UbiquityWebcam_1_0_gir_INCLUDES = GObject-2.0 Gtk-3.0 Gst-1.0
108 @HAVE_INTROSPECTION_TRUE@UbiquityWebcam_1_0_gir_CFLAGS = $(INCLUDES) --identifier-prefix=Ubiquity
109 @HAVE_INTROSPECTION_TRUE@UbiquityWebcam_1_0_gir_LIBS = libubiwebcam.la
110 @HAVE_INTROSPECTION_TRUE@UbiquityWebcam_1_0_gir_FILES = $(introspection_sources)
111
112=== modified file 'src/webcam/webcam.c'
113--- src/webcam/webcam.c 2012-03-28 10:41:17 +0000
114+++ src/webcam/webcam.c 2013-01-16 13:46:22 +0000
115@@ -131,8 +131,8 @@
116 gtk_box_pack_start (GTK_BOX (self), priv->drawing_area, TRUE, TRUE, 0);
117 gtk_box_pack_start (GTK_BOX (self), priv->button, FALSE, FALSE, 0);
118
119- priv->camerabin = gst_element_factory_make ("camerabin2" , "cam");
120- priv->viewfinder_caps = gst_caps_new_simple ("video/x-raw-rgb",
121+ priv->camerabin = gst_element_factory_make ("camerabin" , "cam");
122+ priv->viewfinder_caps = gst_caps_new_simple ("video/x-raw",
123 "width", G_TYPE_INT, 640,
124 "height", G_TYPE_INT, 480, NULL);
125 g_object_set (G_OBJECT (priv->camerabin),
126@@ -156,7 +156,7 @@
127 priv->bus = gst_element_get_bus (priv->camerabin);
128 gst_bus_add_signal_watch (priv->bus);
129 g_signal_connect (priv->bus, "message", G_CALLBACK (message_cb), self);
130- gst_bus_set_sync_handler (priv->bus, (GstBusSyncHandler) window_id_cb, NULL);
131+ gst_bus_set_sync_handler (priv->bus, (GstBusSyncHandler) window_id_cb, NULL, NULL);
132 gst_object_ref (priv->bus);
133 gst_object_ref (priv->camerabin);
134 }
135@@ -170,8 +170,7 @@
136 return;
137 priv->src = gst_element_factory_make ("wrappercamerabinsrc", NULL);
138 priv->testsrc = gst_element_factory_make ("videotestsrc", NULL);
139- g_object_set (G_OBJECT (priv->testsrc), "is-live", TRUE,
140- "peer-alloc", FALSE, NULL);
141+ g_object_set (G_OBJECT (priv->testsrc), "is-live", TRUE, NULL);
142 g_object_set (G_OBJECT (priv->src), "video-source", priv->testsrc, NULL);
143 g_object_set (G_OBJECT (priv->camerabin), "camera-source", priv->src, NULL);
144 ubiquity_webcam_stop (webcam);
145@@ -278,12 +277,12 @@
146 if (GST_MESSAGE_TYPE (msg) != GST_MESSAGE_ELEMENT)
147 return GST_BUS_PASS;
148
149- if (!gst_structure_has_name (msg->structure, "prepare-xwindow-id"))
150+ if (!gst_is_video_overlay_prepare_window_handle_message(msg))
151 return GST_BUS_PASS;
152
153 g_object_set(G_OBJECT(msg->src), "force-aspect-ratio", TRUE, NULL);
154
155- gst_x_overlay_set_xwindow_id (GST_X_OVERLAY (GST_MESSAGE_SRC(msg)),
156+ gst_video_overlay_set_window_handle (GST_VIDEO_OVERLAY (GST_MESSAGE_SRC(msg)),
157 video_window_xid);
158 gst_message_unref (msg);
159 return GST_BUS_DROP;
160
161=== modified file 'src/webcam/webcam.h'
162--- src/webcam/webcam.h 2012-02-12 02:35:58 +0000
163+++ src/webcam/webcam.h 2013-01-16 13:46:22 +0000
164@@ -29,7 +29,7 @@
165 #include <gtk/gtk.h>
166 #include <gdk/gdkx.h>
167 #include <gst/gst.h>
168-#include <gst/interfaces/xoverlay.h>
169+#include <gst/video/videooverlay.h>
170
171
172 G_BEGIN_DECLS

Subscribers

People subscribed via source and target branches

to status/vote changes: