summaryrefslogtreecommitdiff
path: root/gst/videosignal/gstvideodetect.c
diff options
context:
space:
mode:
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
@@ -80,2 +80,9 @@
* <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
@@ -186,3 +193,3 @@ static void
gst_video_detect_post_message (GstVideoDetect * videodetect, GstBuffer * buffer,
- guint data)
+ guint64 data)
{
@@ -210,3 +217,4 @@ gst_video_detect_post_message (GstVideoDetect * videodetect, GstBuffer * buffer,
"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);
@@ -239,3 +247,3 @@ gst_video_detect_yuv (GstVideoDetect * videodetect, GstBuffer * buffer)
guint8 *d, *data;
- guint pattern_data;
+ guint64 pattern_data;