mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 14:26:43 +00:00
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.
This commit is contained in:
parent
5dcb16faca
commit
15acb5f276
2 changed files with 8 additions and 1 deletions
|
@ -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>
|
2004-03-05 Benjamin Otte <otte@gnome.org>
|
||||||
|
|
||||||
* gst/audioconvert/gstaudioconvert.c:
|
* gst/audioconvert/gstaudioconvert.c:
|
||||||
|
|
|
@ -100,7 +100,7 @@ main (int argc, char *argv[])
|
||||||
{
|
{
|
||||||
GstPlay *play;
|
GstPlay *play;
|
||||||
GstElement *data_src, *video_sink, *audio_sink, *vis_element;
|
GstElement *data_src, *video_sink, *audio_sink, *vis_element;
|
||||||
GError *error;
|
GError *error = NULL;
|
||||||
|
|
||||||
/* Initing GStreamer library */
|
/* Initing GStreamer library */
|
||||||
gst_init (&argc, &argv);
|
gst_init (&argc, &argv);
|
||||||
|
|
Loading…
Reference in a new issue