Ejemplo n.º 1
0
static off_t rtsp_plugin_read (input_plugin_t *this_gen,
                              void *buf, off_t len) {
  rtsp_input_plugin_t *this = (rtsp_input_plugin_t *) this_gen;
  off_t               n;

  lprintf ("rtsp_plugin_read: %"PRId64" bytes ...\n", len);

  n = rtsp_session_read (this->rtsp, buf, len);
  if (n > 0)
    this->curpos += n;

  return n;
}
Ejemplo n.º 2
0
static int
rtsp_streaming_read (int fd, char *buffer,
                     int size, streaming_ctrl_t *stream_ctrl)
{
  return rtsp_session_read (stream_ctrl->data, buffer, size);
}