gst/gstpreset.c: For theses two fgets we handle the error below.
authorStefan Kost <ensonic@users.sourceforge.net>
Wed, 21 Nov 2007 16:08:25 +0000 (16:08 +0000)
committerStefan Kost <ensonic@users.sourceforge.net>
Wed, 21 Nov 2007 16:08:25 +0000 (16:08 +0000)
Original commit message from CVS:
* gst/gstpreset.c:
For theses two fgets we handle the error below.

ChangeLog
gst/gstpreset.c

index 580a03b..73368f3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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):
index 5a21524..b03c6da 100644 (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;