summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--ext/snapshot/gstsnapshot.c11
2 files changed, 8 insertions, 10 deletions
diff --git a/ChangeLog b/ChangeLog
index f0a5ac3b..70dc471f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2005-01-06 Paul Jack <pjack@sfaf.org>
+
+ Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net>
+
+ * ext/snapshot/gstsnapshot.c: (gst_snapshot_class_init):
+ Fix segfault (#161667).
+
2005-01-05 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_getcaps):
diff --git a/ext/snapshot/gstsnapshot.c b/ext/snapshot/gstsnapshot.c
index 231cdce3..9b3898b9 100644
--- a/ext/snapshot/gstsnapshot.c
+++ b/ext/snapshot/gstsnapshot.c
@@ -76,7 +76,6 @@ static void gst_snapshot_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec);
static void gst_snapshot_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec);
-static void snapshot_handler (GstElement * element);
static GstElementClass *parent_class = NULL;
@@ -156,20 +155,12 @@ gst_snapshot_class_init (GstSnapshotClass * klass)
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstSnapshotClass, snapshot),
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0);
- klass->snapshot = snapshot_handler;
+ klass->snapshot = NULL;
gobject_class->set_property = gst_snapshot_set_property;
gobject_class->get_property = gst_snapshot_get_property;
}
-static void
-snapshot_handler (GstElement * element)
-{
- GstSnapshot *snapshot;
-
- snapshot = GST_SNAPSHOT (element);
- snapshot->snapshot_asked = TRUE;
-}
static gboolean