summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-03-05 02:30:10 +0000
committerRonald S. Bultje <rbultje@ronald.bitfreak.net>2004-03-05 02:30:10 +0000
commite1b04e26cf8b79a07c85cd8272b6677faa4e12ce (patch)
tree5d072ba5b5b43d39e8c69539a57b199fa12ece29 /examples
parentca3cdcec7e46aff1049419283ff094db31b99de7 (diff)
downloadgst-plugins-bad-e1b04e26cf8b79a07c85cd8272b6677faa4e12ce.tar.gz
gst-plugins-bad-e1b04e26cf8b79a07c85cd8272b6677faa4e12ce.tar.bz2
gst-plugins-bad-e1b04e26cf8b79a07c85cd8272b6677faa4e12ce.zip
examples/gstplay/player.c: Initialize variables to NULL. Prevents a segfault because the (uninitialized) variable is ...
Original commit message from CVS: * 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.
Diffstat (limited to 'examples')
-rw-r--r--examples/gstplay/player.c2
1 files changed, 1 insertions, 1 deletions
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);