diff src/vorbis/fileinfo.c @ 1978:fa9f85cebade

s/vfs_/aud_vfs_/g
author William Pitcock <nenolod@atheme.org>
date Sun, 07 Oct 2007 00:25:33 -0500
parents 6acf1bda788b
children 2ffc6a69fcd1
line wrap: on
line diff
--- a/src/vorbis/fileinfo.c	Sun Oct 07 00:23:19 2007 -0500
+++ b/src/vorbis/fileinfo.c	Sun Oct 07 00:25:33 2007 -0500
@@ -359,7 +359,7 @@
 static gint
 init_files(vcedit_state * state)
 {
-    if ((vte.in = vfs_fopen(vte.filename, "rb")) == NULL) {
+    if ((vte.in = aud_vfs_fopen(vte.filename, "rb")) == NULL) {
 #ifdef DEBUG
         g_message("fileinfo.c: couldn't open file %s", vte.filename);
 #endif
@@ -371,7 +371,7 @@
         g_message("fileinfo.c: couldn't open file for editing %s",
                   vte.filename);
 #endif
-        vfs_fclose(vte.in);
+        aud_vfs_fclose(vte.in);
         return -1;
     }
 
@@ -394,7 +394,7 @@
 
     if ((ofh = mkstemp(tmpfn)) < 0) {
         g_free(tmpfn);
-        vfs_fclose(vte.in);
+        aud_vfs_fclose(vte.in);
 #ifdef DEBUG
         g_critical("fileinfo.c: couldn't create temp file");
 #endif
@@ -406,11 +406,11 @@
 #endif
     }
 
-    if ((out = vfs_fopen(tmpfn, "wb")) == NULL) {
+    if ((out = aud_vfs_fopen(tmpfn, "wb")) == NULL) {
         close(ofh);
         remove(tmpfn);
         g_free(tmpfn);
-        vfs_fclose(vte.in);
+        aud_vfs_fclose(vte.in);
 #ifdef DEBUG
         g_critical("fileinfo.c: couldn't open temp file");
 #endif
@@ -429,9 +429,9 @@
         retval = -1;
     }
 
-    vfs_fclose(vte.in);
+    aud_vfs_fclose(vte.in);
 
-    if (vfs_fclose(out) != 0) {
+    if (aud_vfs_fclose(out) != 0) {
 #ifdef DEBUG
         g_critical("fileinfo.c: couldn't close out file");
 #endif
@@ -927,7 +927,7 @@
     gtk_label_set_text(GTK_LABEL(filesize_label), _("File size:"));
     gtk_label_set_text(GTK_LABEL(filesize_label_val), _("N/A"));
 
-    if ((fh->fd = vfs_fopen(vte.filename, "r")) != NULL) {
+    if ((fh->fd = aud_vfs_fopen(vte.filename, "r")) != NULL) {
         g_mutex_lock(vf_mutex);
 
         if (ov_open_callbacks(fh, &vf, NULL, 0, vorbis_callbacks) == 0) {
@@ -951,8 +951,8 @@
             time = ov_time_total(&vf, -1);
             minutes = time / 60;
             seconds = time % 60;
-            vfs_fseek(fh->fd, 0, SEEK_END);
-            filesize = vfs_ftell(fh->fd);
+            aud_vfs_fseek(fh->fd, 0, SEEK_END);
+            filesize = aud_vfs_ftell(fh->fd);
 
             label_set_text(GTK_LABEL(bitrate_label_val),
                            _("%d KBit/s (nominal)"), bitrate);
@@ -965,7 +965,7 @@
 
         }
         else
-            vfs_fclose(fh->fd);
+            aud_vfs_fclose(fh->fd);
     }
 
     rg_track_gain = get_comment(comment, "replaygain_track_gain");
@@ -1048,7 +1048,7 @@
     g_mutex_unlock(vf_mutex);
 
 
-    gtk_widget_set_sensitive(tag_frame, vfs_is_writeable(vte.filename));
+    gtk_widget_set_sensitive(tag_frame, aud_vfs_is_writeable(vte.filename));
 
     g_signal_connect_swapped(title_entry, "changed", change_buttons,
                              save_button);