summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-01-05 23:27:44 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2005-01-05 23:27:44 +0000
commit563144ad3a53d1428848cef045901d0278d59572 (patch)
treedfc4eb9f7f505226de8c406ad006467f97508c0d
parent558e8227abee12bf9ee82a181d4344d153eec884 (diff)
downloadgst-plugins-bad-563144ad3a53d1428848cef045901d0278d59572.tar.gz
gst-plugins-bad-563144ad3a53d1428848cef045901d0278d59572.tar.bz2
gst-plugins-bad-563144ad3a53d1428848cef045901d0278d59572.zip
ext/snapshot/gstsnapshot.c: Fix segfault (#161667).
Original commit message from CVS: Reviewed by: Ronald S. Bultje <rbultje@ronald.bitfreak.net> * ext/snapshot/gstsnapshot.c: (gst_snapshot_class_init): Fix segfault (#161667).
-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