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).
This commit is contained in:
Ronald S. Bultje 2005-01-05 23:27:44 +00:00
parent 558e8227ab
commit 563144ad3a
2 changed files with 8 additions and 10 deletions

View file

@ -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> 2005-01-05 Ronald S. Bultje <rbultje@ronald.bitfreak.net>
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_getcaps): * sys/v4l/gstv4lsrc.c: (gst_v4lsrc_getcaps):

View file

@ -76,7 +76,6 @@ static void gst_snapshot_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec); const GValue * value, GParamSpec * pspec);
static void gst_snapshot_get_property (GObject * object, guint prop_id, static void gst_snapshot_get_property (GObject * object, guint prop_id,
GValue * value, GParamSpec * pspec); GValue * value, GParamSpec * pspec);
static void snapshot_handler (GstElement * element);
static GstElementClass *parent_class = NULL; static GstElementClass *parent_class = NULL;
@ -156,20 +155,12 @@ gst_snapshot_class_init (GstSnapshotClass * klass)
G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstSnapshotClass, snapshot), G_SIGNAL_RUN_LAST, G_STRUCT_OFFSET (GstSnapshotClass, snapshot),
NULL, NULL, g_cclosure_marshal_VOID__VOID, G_TYPE_NONE, 0); 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->set_property = gst_snapshot_set_property;
gobject_class->get_property = gst_snapshot_get_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 static gboolean