#endif
#include <stdarg.h>
#include <assert.h>
+#include <errno.h>
#include <vlc_common.h>
#include <vlc_demux.h>
/*
* Local prototypes
*/
-static int Demux (demux_t *);
static int Control (demux_t *, int i_query, va_list args);
static int extract_port (char **phost);
}
vlc_mutex_init (&p_sys->lock);
- vlc_cond_init (&p_sys->wait);
p_sys->srtp = NULL;
p_sys->fd = fd;
p_sys->rtcp_fd = rtcp_fd;
p_sys->max_dropout = var_CreateGetInteger (obj, "rtp-max-dropout");
p_sys->max_misorder = var_CreateGetInteger (obj, "rtp-max-misorder");
p_sys->framed_rtp = (tp == IPPROTO_TCP);
- p_sys->dead = false;
- demux->pf_demux = Demux;
+ demux->pf_demux = NULL;
demux->pf_control = Control;
demux->p_sys = p_sys;
vlc_cancel (p_sys->thread);
vlc_join (p_sys->thread, NULL);
}
- vlc_cond_destroy (&p_sys->wait);
vlc_mutex_destroy (&p_sys->lock);
if (p_sys->srtp)
case DEMUX_GET_PTS_DELAY:
{
int64_t *v = va_arg (args, int64_t *);
- *v = p_sys->caching * 1000;
+ *v = (int64_t)p_sys->caching * 1000;
return VLC_SUCCESS;
}
* Dynamic payload type handlers
* Hmm, none implemented yet.
*/
-
-/**
- * Processing callback
- */
-static int Demux (demux_t *demux)
-{
- return rtp_process (demux) ? 0 : 1;
-}