2010-05-01, 02:34
ok. Here are the code changes for the libRTMP part. Not including the VS project file. Not that may want any of these changes, but for reference/info.
http://malus.exotica.org.uk/~buzz/librtmp/librtmp.diff
couple of notes:
if (sb.sb_socket < 0)
to
if (sb.sb_socket == -1)
the socket call returns things like -2348487545 on XBOX.
in some cases i put ifdef xbox first, as the xbmc xlib include for example defines WIN32 and it caused me problems. for example
hpre.av_val = getenv("HOMEDRIVE");
hpre.av_len = strlen(hpre.av_val);
if getenv returns null, the strlen is going to break. I was accidently running this code (due to the define problem), and so it was crashing. found it in the end though.
-Read_1_Packet(RTMP *r, char *buf, int buflen)
+Read_1_Packet(RTMP *r, char *buf, unsigned int buflen)
to get rid of a unsigned > signed comparison warning.
Think that is about it.
http://malus.exotica.org.uk/~buzz/librtmp/librtmp.diff
couple of notes:
if (sb.sb_socket < 0)
to
if (sb.sb_socket == -1)
the socket call returns things like -2348487545 on XBOX.
in some cases i put ifdef xbox first, as the xbmc xlib include for example defines WIN32 and it caused me problems. for example
hpre.av_val = getenv("HOMEDRIVE");
hpre.av_len = strlen(hpre.av_val);
if getenv returns null, the strlen is going to break. I was accidently running this code (due to the define problem), and so it was crashing. found it in the end though.
-Read_1_Packet(RTMP *r, char *buf, int buflen)
+Read_1_Packet(RTMP *r, char *buf, unsigned int buflen)
to get rid of a unsigned > signed comparison warning.
Think that is about it.