[xiph-cvs] cvs commit: libshout/src shout.c

Brendan brendan at xiph.org
Wed Jul 9 11:10:19 PDT 2003



brendan     03/07/09 14:10:19

  Modified:    include/shout shout.h
               src      shout.c
  Log:
  Correct shout.h documentation.
  Allow shout_set_metadata to work on an unopened connection (useful for
  utilities that want to modify another process' stream).

Revision  Changes    Path
1.21      +6 -2      libshout/include/shout/shout.h

Index: shout.h
===================================================================
RCS file: /usr/local/cvsroot/libshout/include/shout/shout.h,v
retrieving revision 1.20
retrieving revision 1.21
diff -u -p -u -r1.20 -r1.21
--- shout.h	2 Jul 2003 16:39:51 -0000	1.20
+++ shout.h	9 Jul 2003 18:10:19 -0000	1.21
@@ -139,8 +139,12 @@ int shout_delay(shout_t *self);
   
 /* Sets MP3 metadata.
  * Returns:
- *   SHOUTERR_SUCCESS on success
- *   SHOUTERR_UNSUPPORTED if protocol isn't Icy or X-Audiocast
+ *   SHOUTERR_SUCCESS
+ *   SHOUTERR_UNSUPPORTED if format isn't MP3
+ *   SHOUTERR_MALLOC
+ *   SHOUTERR_INSANE
+ *   SHOUTERR_NOCONNECT
+ *   SHOUTERR_SOCKET
  */
 int shout_set_metadata(shout_t *self, shout_metadata_t *metadata);
 

<p><p>1.47      +0 -2      libshout/src/shout.c

Index: shout.c
===================================================================
RCS file: /usr/local/cvsroot/libshout/src/shout.c,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -p -u -r1.46 -r1.47
--- shout.c	7 Jul 2003 01:40:08 -0000	1.46
+++ shout.c	9 Jul 2003 18:10:19 -0000	1.47
@@ -291,8 +291,6 @@ int shout_set_metadata(shout_t *self, sh
         if (!(encvalue = _shout_util_dict_urlencode(metadata, '&')))
                 return SHOUTERR_MALLOC;
 
-	if (!self->connected)
-		return SHOUTERR_UNCONNECTED;
         if ((socket = sock_connect(self->host, self->port)) <= 0)
                 return SHOUTERR_NOCONNECT;
 

<p><p>--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list