gst/gstpreset.c: For theses two fgets we handle the error below.

Original commit message from CVS:
* gst/gstpreset.c:
For theses two fgets we handle the error below.
This commit is contained in:
Stefan Kost 2007-11-21 16:08:25 +00:00
parent b4c503929a
commit 3b14dfdc66
2 changed files with 7 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2007-11-21 Stefan Kost <ensonic@users.sf.net>
* gst/gstpreset.c:
For theses two fgets we handle the error below.
2007-11-21 Wim Taymans <wim.taymans@gmail.com>
* libs/gst/base/gstbasesink.c: (gst_base_sink_send_event):

View file

@ -248,7 +248,7 @@ gst_preset_default_get_preset_names (GstPreset * self)
/* read preset entries */
while (!feof (in)) {
/* read preset entry */
fgets (line, LINE_LEN, in);
(void) fgets (line, LINE_LEN, in);
g_strchomp (line);
if (*line) {
preset_name = g_strdup (line);
@ -261,7 +261,7 @@ gst_preset_default_get_preset_names (GstPreset * self)
/* read preset lines */
parse_preset = TRUE;
while (parse_preset) {
fgets (line, LINE_LEN, in);
(void) fgets (line, LINE_LEN, in);
if (feof (in) || (*line == '\n')) {
GST_DEBUG ("preset done");
parse_preset = FALSE;