Merge lp:~ubuntu-branches/ubuntu/natty/gst-plugins-bad0.10/natty-201103311110 into lp:ubuntu/natty/gst-plugins-bad0.10

Proposed by James Westby
Status: Rejected
Rejected by: Colin Watson
Proposed branch: lp:~ubuntu-branches/ubuntu/natty/gst-plugins-bad0.10/natty-201103311110
Merge into: lp:ubuntu/natty/gst-plugins-bad0.10
Diff against target: 197 lines (+185/-0) (has conflicts)
2 files modified
debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch (+142/-0)
debian/patches/fpsdisplaysink_sync_default_value.patch (+43/-0)
Conflict adding file debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch.  Moved existing file to debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch.moved.
Conflict adding file debian/patches/fpsdisplaysink_sync_default_value.patch.  Moved existing file to debian/patches/fpsdisplaysink_sync_default_value.patch.moved.
To merge this branch: bzr merge lp:~ubuntu-branches/ubuntu/natty/gst-plugins-bad0.10/natty-201103311110
Reviewer Review Type Date Requested Status
Colin Watson Disapprove
Review via email: mp+55730@code.launchpad.net

Description of the change

The package history in the archive and the history in the bzr branch differ. As the archive is authoritative the history of lp:ubuntu/natty/gst-plugins-bad0.10 now reflects that and the old bzr branch has been pushed to lp:~ubuntu-branches/ubuntu/natty/gst-plugins-bad0.10/natty-201103311110. A merge should be performed if necessary.

To post a comment you must log in.
Revision history for this message
Colin Watson (cjwatson) wrote :

This branch is a different version of the change made in 0.10.21-1ubuntu8, and didn't have consistent quilt patch application. It doesn't have significant history that isn't in the changelog. On the whole I think it's best to forget about it, so I'm rejecting this.

review: Disapprove

Unmerged revisions

60. By Steve Langasek

merge from Kunal

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== added file 'debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch'
2--- debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch 1970-01-01 00:00:00 +0000
3+++ debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch 2011-03-31 11:14:29 +0000
4@@ -0,0 +1,142 @@
5+From 2cebc40ca189ba6d23e3170d51d280daead281ff Mon Sep 17 00:00:00 2001
6+From: benjamin gaignard <benjamin.gaignard@linaro.org>
7+Date: Wed, 16 Mar 2011 09:50:34 +0100
8+Subject: [PATCH] fpsdisplaysink: add properties to get dropped and rendered values
9+ change frames_rendered and frames_dropped from guint64 to gint
10+ and make them atomic
11+
12+---
13+ gst/debugutils/fpsdisplaysink.c | 33 ++++++++++++++++++++++++++-------
14+ gst/debugutils/fpsdisplaysink.h | 11 ++++-------
15+ 2 files changed, 30 insertions(+), 14 deletions(-)
16+
17+diff --git a/gst/debugutils/fpsdisplaysink.c b/gst/debugutils/fpsdisplaysink.c
18+index aca421c..85776a5 100644
19+--- a/gst/debugutils/fpsdisplaysink.c
20++++ b/gst/debugutils/fpsdisplaysink.c
21+@@ -81,7 +81,9 @@ enum
22+ ARG_FPS_UPDATE_INTERVAL,
23+ ARG_MAX_FPS,
24+ ARG_MIN_FPS,
25+- ARG_SIGNAL_FPS_MEASUREMENTS
26++ ARG_SIGNAL_FPS_MEASUREMENTS,
27++ ARG_DROPPED,
28++ ARG_RENDERED
29+ /* FILL ME */
30+ };
31+
32+@@ -148,6 +150,17 @@ fps_display_sink_class_init (GstFPSDisplaySinkClass * klass)
33+ "-1 means no measurement has yet been done", -1, G_MAXDOUBLE, -1,
34+ G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
35+
36++ g_object_class_install_property (gobject_klass, ARG_DROPPED,
37++ g_param_spec_int ("frames-dropped", "dropped frames",
38++ "Number of dropped frames", 0, G_MAXINT, 0,
39++ G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
40++
41++ g_object_class_install_property (gobject_klass, ARG_RENDERED,
42++ g_param_spec_int ("frames-rendered", "rendered frames",
43++ "Number of rendered frames", 0, G_MAXINT, 0,
44++ G_PARAM_STATIC_STRINGS | G_PARAM_READABLE));
45++
46++
47+ g_object_class_install_property (gobject_klass, ARG_SIGNAL_FPS_MEASUREMENTS,
48+ g_param_spec_boolean ("signal-fps-measurements",
49+ "Signal fps measurements",
50+@@ -217,9 +230,9 @@ on_video_sink_data_flow (GstPad * pad, GstMiniObject * mini_obj,
51+
52+ gst_event_parse_qos (ev, NULL, &diff, &ts);
53+ if (diff <= 0.0) {
54+- self->frames_rendered++;
55++ g_atomic_int_inc (&self->frames_rendered);
56+ } else {
57+- self->frames_dropped++;
58++ g_atomic_int_inc (&self->frames_dropped);
59+ }
60+
61+ ts = gst_util_get_timestamp ();
62+@@ -332,8 +345,8 @@ display_current_fps (gpointer data)
63+ gdouble time_diff, time_elapsed;
64+ GstClockTime current_ts = gst_util_get_timestamp ();
65+
66+- frames_rendered = self->frames_rendered;
67+- frames_dropped = self->frames_dropped;
68++ frames_rendered = g_atomic_int_get (&self->frames_rendered);
69++ frames_dropped = g_atomic_int_get (&self->frames_dropped);
70+
71+ if ((frames_rendered + frames_dropped) == 0) {
72+ /* in case timer fired and we didn't yet get any QOS events */
73+@@ -402,8 +415,8 @@ fps_display_sink_start (GstFPSDisplaySink * self)
74+ GstPad *target_pad = NULL;
75+
76+ /* Init counters */
77+- self->frames_rendered = G_GUINT64_CONSTANT (0);
78+- self->frames_dropped = G_GUINT64_CONSTANT (0);
79++ self->frames_rendered = 0;
80++ self->frames_dropped = 0;
81+ self->last_frames_rendered = G_GUINT64_CONSTANT (0);
82+ self->last_frames_dropped = G_GUINT64_CONSTANT (0);
83+ self->max_fps = -1;
84+@@ -552,6 +565,12 @@ fps_display_sink_get_property (GObject * object, guint prop_id,
85+ case ARG_MIN_FPS:
86+ g_value_set_double (value, self->min_fps);
87+ break;
88++ case ARG_DROPPED:
89++ g_value_set_int (value, g_atomic_int_get (&self->frames_dropped));
90++ break;
91++ case ARG_RENDERED:
92++ g_value_set_int (value, g_atomic_int_get (&self->frames_rendered));
93++ break;
94+ case ARG_SIGNAL_FPS_MEASUREMENTS:
95+ g_value_set_boolean (value, self->signal_measurements);
96+ break;
97+diff --git a/gst/debugutils/fpsdisplaysink.h b/gst/debugutils/fpsdisplaysink.h
98+index 6a01663..c73c2dc 100644
99+--- a/gst/debugutils/fpsdisplaysink.h
100++++ b/gst/debugutils/fpsdisplaysink.h
101+@@ -23,7 +23,6 @@
102+ #include <gst/gst.h>
103+
104+ G_BEGIN_DECLS
105+-
106+ #define GST_TYPE_FPS_DISPLAY_SINK \
107+ (fps_display_sink_get_type())
108+ #define GST_FPS_DISPLAY_SINK(obj) \
109+@@ -34,8 +33,7 @@ G_BEGIN_DECLS
110+ (G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_FPS_DISPLAY_SINK))
111+ #define GST_IS_FPS_DISPLAY_SINK_CLASS(klass) \
112+ (G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_FPS_DISPLAY_SINK))
113+-
114+-GType fps_display_sink_get_type (void);
115++ GType fps_display_sink_get_type (void);
116+
117+ typedef struct _GstFPSDisplaySink GstFPSDisplaySink;
118+ typedef struct _GstFPSDisplaySinkClass GstFPSDisplaySinkClass;
119+@@ -44,15 +42,15 @@ struct _GstFPSDisplaySink
120+ {
121+ GstBin bin;
122+
123+- /*< private >*/
124++ /*< private > */
125+ /* gstreamer components */
126+ GstElement *text_overlay;
127+ GstElement *video_sink;
128+ GstPad *ghost_pad;
129+
130+ /* statistics */
131+- guint64 frames_rendered, last_frames_rendered;
132+- guint64 frames_dropped, last_frames_dropped;
133++ gint frames_rendered, frames_dropped;
134++ guint64 last_frames_rendered, last_frames_dropped;
135+
136+ GstClockTime start_ts;
137+ GstClockTime last_ts;
138+@@ -74,5 +72,4 @@ struct _GstFPSDisplaySinkClass
139+ };
140+
141+ G_END_DECLS
142+-
143+ #endif /* __FPS_DISPLAY_SINK_H__ */
144+--
145+1.7.0.4
146+
147
148=== renamed file 'debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch' => 'debian/patches/0001-fpsdisplaysink-add-properties-to-get-dropped-and-ren.patch.moved'
149=== added file 'debian/patches/fpsdisplaysink_sync_default_value.patch'
150--- debian/patches/fpsdisplaysink_sync_default_value.patch 1970-01-01 00:00:00 +0000
151+++ debian/patches/fpsdisplaysink_sync_default_value.patch 2011-03-31 11:14:29 +0000
152@@ -0,0 +1,43 @@
153+From 67bfe79a5c818de7b2c42453d65ba80cf429b5e9 Mon Sep 17 00:00:00 2001
154+From: benjamin gaignard <benjamin.gaignard@linaro.org>
155+Date: Mon, 28 Feb 2011 11:51:54 +0100
156+Subject: [PATCH] fpsdisplay: fix sync property default value
157+
158+---
159+ gst/debugutils/fpsdisplaysink.c | 6 ++++--
160+ 1 files changed, 4 insertions(+), 2 deletions(-)
161+
162+diff --git a/gst/debugutils/fpsdisplaysink.c b/gst/debugutils/fpsdisplaysink.c
163+index e3be1d6..5dca63d 100644
164+--- a/gst/debugutils/fpsdisplaysink.c
165++++ b/gst/debugutils/fpsdisplaysink.c
166+@@ -65,6 +65,8 @@ GST_STATIC_PAD_TEMPLATE ("sink",
167+ GST_DEBUG_CATEGORY_STATIC (fps_display_sink_debug);
168+ #define GST_CAT_DEFAULT fps_display_sink_debug
169+
170++#define DEFAULT_SYNC TRUE
171++
172+ enum
173+ {
174+ /* FILL ME */
175+@@ -116,7 +118,7 @@ fps_display_sink_class_init (GstFPSDisplaySinkClass * klass)
176+ g_object_class_install_property (gobject_klass, ARG_SYNC,
177+ g_param_spec_boolean ("sync",
178+ "Sync", "Sync on the clock (if the internally used sink doesn't "
179+- "have this property it will be ignored", TRUE,
180++ "have this property it will be ignored", DEFAULT_SYNC,
181+ G_PARAM_STATIC_STRINGS | G_PARAM_READWRITE));
182+
183+ g_object_class_install_property (gobject_klass, ARG_TEXT_OVERLAY,
184+@@ -323,7 +325,7 @@ static void
185+ fps_display_sink_init (GstFPSDisplaySink * self,
186+ GstFPSDisplaySinkClass * g_class)
187+ {
188+- self->sync = FALSE;
189++ self->sync = DEFAULT_SYNC;
190+ self->signal_measurements = DEFAULT_SIGNAL_FPS_MEASUREMENTS;
191+ self->use_text_overlay = TRUE;
192+ self->fps_update_interval = GST_MSECOND * DEFAULT_FPS_UPDATE_INTERVAL_MS;
193+--
194+1.7.0.4
195+
196
197=== renamed file 'debian/patches/fpsdisplaysink_sync_default_value.patch' => 'debian/patches/fpsdisplaysink_sync_default_value.patch.moved'

Subscribers

People subscribed via source and target branches

to all changes: