]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
kill the reposition handler in struct audio_format_handler
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index f9e2d6c2aef98a29d1bc0aecc1680b22851e7e00..133ed19fa833f467137a94378180173defec4df1 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -25,7 +25,7 @@
 #include "server.h"
 #include <sys/time.h> /* gettimeofday */
 #include "server.cmdline.h"
-#include "db.h"
+#include "afs.h"
 #include "afh.h"
 #include "vss.h"
 #include "send.h"
@@ -82,6 +82,8 @@ static struct audio_format_handler afl[] = {
                .name = NULL,
        }
 };
+
+/** iterate over each supported audio format */
 #define FOR_EACH_AUDIO_FORMAT(i) for (i = 0; afl[i].name; i++)
 
 /**
@@ -406,6 +408,14 @@ char *vss_get_header(int *header_len)
                return NULL;
        return afl[mmd->audio_format].get_header_info(header_len);
 }
+
+/**
+ * get the list of all supported audio formats
+ *
+ * \return a space separated list of all supported audio formats
+ * It is not allocated at runtime, i.e. there is no need to free
+ * the returned string in the caller.
+ */
 const char *supported_audio_formats(void)
 {
        return SUPPORTED_AUDIO_FORMATS;
@@ -472,8 +482,6 @@ again:
                }
                mmd->chunks_sent = 0;
        }
-       if (af && vss_repos() && mmd->current_chunk != mmd->repos_request)
-               af->reposition_stream(mmd->repos_request);
        if (vss_repos()) {
                mmd->new_vss_status_flags &= ~(VSS_REPOS);
                mmd->current_chunk = mmd->repos_request;