summaryrefslogtreecommitdiff
path: root/gst/videosignal/gstvideodetect.c
diff options
context:
space:
mode:
authorRené Stadler <mail@renestadler.de>2009-09-08 00:01:28 +0300
committerRené Stadler <mail@renestadler.de>2009-09-26 19:11:09 +0300
commitc45cc31c7d87abe4a4d2f8767720c8da321ca6b3 (patch)
tree78cb9ed0edee2eb587fd6d9b8871f9c0626aa799 /gst/videosignal/gstvideodetect.c
parentb24d581c78e0de7d57ccb9b015339eab174c2cd2 (diff)
videosignal: change pattern data type to uint64, add property and message field
Keeps the old uint typed value support for compatibility.
Diffstat (limited to 'gst/videosignal/gstvideodetect.c')
-rw-r--r--gst/videosignal/gstvideodetect.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/gst/videosignal/gstvideodetect.c b/gst/videosignal/gstvideodetect.c
index d840dd26f..0ddc6c3d4 100644
--- a/gst/videosignal/gstvideodetect.c
+++ b/gst/videosignal/gstvideodetect.c
@@ -78,6 +78,13 @@
* </listitem>
* <listitem>
* <para>
+ * #guint64
+ * <classname>&quot;data-uint64&quot;</classname>:
+ * the data-pattern found after the pattern or 0 when have-signal is #FALSE.
+ * </para>
+ * </listitem>
+ * <listitem>
+ * <para>
* #guint
* <classname>&quot;data&quot;</classname>:
* the data-pattern found after the pattern or 0 when have-signal is #FALSE.
@@ -184,7 +191,7 @@ gst_video_detect_set_caps (GstBaseTransform * btrans, GstCaps * incaps,
static void
gst_video_detect_post_message (GstVideoDetect * videodetect, GstBuffer * buffer,
- guint data)
+ guint64 data)
{
GstBaseTransform *trans;
GstMessage *m;
@@ -208,7 +215,8 @@ gst_video_detect_post_message (GstVideoDetect * videodetect, GstBuffer * buffer,
"stream-time", G_TYPE_UINT64, stream_time,
"running-time", G_TYPE_UINT64, running_time,
"duration", G_TYPE_UINT64, duration,
- "data", G_TYPE_UINT, data, NULL));
+ "data-uint64", G_TYPE_UINT64, data,
+ "data", G_TYPE_UINT, (guint) MIN (data, G_MAXINT), NULL));
gst_element_post_message (GST_ELEMENT_CAST (videodetect), m);
}
@@ -237,7 +245,7 @@ gst_video_detect_yuv (GstVideoDetect * videodetect, GstBuffer * buffer)
gint i, pw, ph, row_stride, pixel_stride, offset;
gint width, height, req_width, req_height;
guint8 *d, *data;
- guint pattern_data;
+ guint64 pattern_data;
data = GST_BUFFER_DATA (buffer);