summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--examples/gstplay/player.c2
2 files changed, 8 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index ec0511aa..48e42698 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2004-03-04 Ronald Bultje <rbultje@ronald.bitfreak.net>
+
+ * examples/gstplay/player.c: (main):
+ Initialize variables to NULL. Prevents a segfault because the
+ (uninitialized) variable is not NULL, resulting in a crash on
+ trying to reach error->message.
+
2004-03-05 Benjamin Otte <otte@gnome.org>
* gst/audioconvert/gstaudioconvert.c:
diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c
index 8aabe69d..32001a90 100644
--- a/examples/gstplay/player.c
+++ b/examples/gstplay/player.c
@@ -100,7 +100,7 @@ main (int argc, char *argv[])
{
GstPlay *play;
GstElement *data_src, *video_sink, *audio_sink, *vis_element;
- GError *error;
+ GError *error = NULL;
/* Initing GStreamer library */
gst_init (&argc, &argv);