diff --git a/ChangeLog b/ChangeLog index ec0511aa0a..48e42698e4 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2004-03-04 Ronald Bultje + + * 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 * gst/audioconvert/gstaudioconvert.c: diff --git a/examples/gstplay/player.c b/examples/gstplay/player.c index 8aabe69da5..32001a9029 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); diff --git a/tests/old/examples/gstplay/player.c b/tests/old/examples/gstplay/player.c index 8aabe69da5..32001a9029 100644 --- a/tests/old/examples/gstplay/player.c +++ b/tests/old/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);