Commit 1cfc0623 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Revert "Fixed deadlock when no data are received in rtp."

This reverts commit a34f0730.
parent e03130e4
......@@ -196,9 +196,10 @@ void rtp_process (demux_t *demux)
mtime_t deadline = INT64_MAX;
vlc_mutex_lock (&p_sys->lock);
if (!rtp_dequeue (demux, p_sys->session, &deadline))
deadline = mdate () + CLOCK_FREQ / 5;
vlc_cond_timedwait (&p_sys->wait, &p_sys->lock, deadline);
if (rtp_dequeue (demux, p_sys->session, &deadline))
/* Pace the demux thread */
vlc_cond_timedwait (&p_sys->wait, &p_sys->lock, deadline);
else
vlc_cond_wait (&p_sys->wait, &p_sys->lock);
vlc_mutex_unlock (&p_sys->lock);
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment