[gst-cvs] gstreamer: gstregistrybinary: remove variable only used for a check.

Edward Hervey bilboed at kemper.freedesktop.org
Fri Apr 3 03:51:38 PDT 2009


Module: gstreamer
Branch: master
Commit: 9557542722c0f5eb7619bb468f3f82f8176b0f42
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=9557542722c0f5eb7619bb468f3f82f8176b0f42

Author: Edward Hervey <bilboed at bilboed.com>
Date:   Fri Apr  3 12:13:38 2009 +0200

gstregistrybinary: remove variable only used for a check.

that variable isn't used anywhere else within that block.

---

 gst/gstregistrybinary.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/gst/gstregistrybinary.c b/gst/gstregistrybinary.c
index e074a60..5bbb824 100644
--- a/gst/gstregistrybinary.c
+++ b/gst/gstregistrybinary.c
@@ -731,10 +731,9 @@ gst_registry_binary_write_cache (GstRegistry * registry, const char *location)
       continue;
 
     if (plugin->flags & GST_PLUGIN_FLAG_CACHED) {
-      int ret;
       struct stat statbuf;
 
-      if ((ret = g_stat (plugin->filename, &statbuf)) < 0 ||
+      if (g_stat (plugin->filename, &statbuf) < 0 ||
           plugin->file_mtime != statbuf.st_mtime ||
           plugin->file_size != statbuf.st_size)
         continue;





More information about the Gstreamer-commits mailing list