[vlc-devel] commit: Privatize a variable ( Rémi Denis-Courmont )
git version control
git at videolan.org
Thu Apr 16 17:36:59 CEST 2009
vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Thu Apr 16 18:36:42 2009 +0300| [01ff226b3b72f1ca05b153c774dc65f5c544aad6] | committer: Rémi Denis-Courmont
Privatize a variable
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=01ff226b3b72f1ca05b153c774dc65f5c544aad6
---
modules/access/rtp/input.c | 5 +++--
modules/access/rtp/rtp.c | 1 -
modules/access/rtp/rtp.h | 1 -
3 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/modules/access/rtp/input.c b/modules/access/rtp/input.c
index 963fe3d..1f0f164 100644
--- a/modules/access/rtp/input.c
+++ b/modules/access/rtp/input.c
@@ -164,6 +164,7 @@ void *rtp_thread (void *data)
{
demux_t *demux = data;
demux_sys_t *p_sys = demux->p_sys;
+ bool autodetect = true;
do
{
@@ -174,7 +175,7 @@ void *rtp_thread (void *data)
p_sys->dead = true; /* Fatal error: abort */
else
{
- if (p_sys->autodetect)
+ if (autodetect)
{ /* Autodetect payload type, _before_ rtp_queue() */
if (rtp_autodetect (demux, p_sys->session, block))
{
@@ -182,7 +183,7 @@ void *rtp_thread (void *data)
block_Release (block);
continue;
}
- p_sys->autodetect = false;
+ autodetect = false;
}
rtp_queue (demux, p_sys->session, block);
}
diff --git a/modules/access/rtp/rtp.c b/modules/access/rtp/rtp.c
index d052322..4a5935f 100644
--- a/modules/access/rtp/rtp.c
+++ b/modules/access/rtp/rtp.c
@@ -244,7 +244,6 @@ static int Open (vlc_object_t *obj)
p_sys->timeout = var_CreateGetInteger (obj, "rtp-timeout");
p_sys->max_dropout = var_CreateGetInteger (obj, "rtp-max-dropout");
p_sys->max_misorder = var_CreateGetInteger (obj, "rtp-max-misorder");
- p_sys->autodetect = true;
p_sys->framed_rtp = (tp == IPPROTO_TCP);
p_sys->dead = false;
diff --git a/modules/access/rtp/rtp.h b/modules/access/rtp/rtp.h
index 0d7659d..86fbc3e 100644
--- a/modules/access/rtp/rtp.h
+++ b/modules/access/rtp/rtp.h
@@ -66,7 +66,6 @@ struct demux_sys_t
uint16_t max_dropout; /**< Max packet forward misordering */
uint16_t max_misorder; /**< Max packet backward misordering */
uint8_t max_src; /**< Max simultaneous RTP sources */
- bool autodetect; /**< Payload format autodetection */
bool framed_rtp; /**< Framed RTP packets over TCP */
bool dead; /**< End of stream */
};
More information about the vlc-devel
mailing list