From: <fla...@gm...> - 2007-12-13 18:15:41
|
# HG changeset patch # User Diego 'Flameeyes' Pettenò <fla...@gm...> # Date 1197569468 -3600 # Node ID 9340e9f403e4fb57ccd02684ac5f57717d48130b # Parent 78636f247cf959e160e9b5259f2a389eed6a7be0 Make rtsp_read_data accept a void* parameter for buffer. diff -r 9340e9f403e4fb57ccd02684ac5f57717d48130b -r 78636f247cf959e160e9b5259f2a389eed6a7be0 src/input/librtsp/rtsp.c --- a/src/input/librtsp/rtsp.c Thu Dec 13 19:11:08 2007 +0100 +++ b/src/input/librtsp/rtsp.c Thu Dec 13 19:05:32 2007 +0100 @@ -382,8 +382,8 @@ int rtsp_request_tearoff(rtsp_t *s, cons * read opaque data from stream */ -int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size) { - +int rtsp_read_data(rtsp_t *s, void *buffer_gen, unsigned int size) { + uint8_t *buffer = buffer_gen; int i,seq; if (size>=4) { diff -r 9340e9f403e4fb57ccd02684ac5f57717d48130b -r 78636f247cf959e160e9b5259f2a389eed6a7be0 src/input/librtsp/rtsp.h --- a/src/input/librtsp/rtsp.h Thu Dec 13 19:11:08 2007 +0100 +++ b/src/input/librtsp/rtsp.h Thu Dec 13 19:05:32 2007 +0100 @@ -51,7 +51,7 @@ int rtsp_request_tearoff(rtsp_t *s, cons int rtsp_send_ok(rtsp_t *s); -int rtsp_read_data(rtsp_t *s, char *buffer, unsigned int size); +int rtsp_read_data(rtsp_t *s, void *buffer, unsigned int size); char* rtsp_search_answers(rtsp_t *s, const char *tag); void rtsp_add_to_payload(char **payload, const char *string); |