mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-03 16:09:39 +00:00
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:
parent
558e8227ab
commit
563144ad3a
2 changed files with 8 additions and 10 deletions
|
@ -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):
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue