summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kost <ensonic@users.sf.net>2011-01-03 20:16:22 +0200
committerStefan Kost <ensonic@users.sf.net>2011-01-03 20:17:47 +0200
commitc9e0db646955b80c8073f2a257e40da86be12d48 (patch)
treeb3b13d8db6283acf19cde2a9614a546726a84695
parenta570310cdc82c339c579ef42b9e7dbd23fc13c72 (diff)
rtspsrc: remove unused variables when debug-logging disabled
-rw-r--r--gst/rtsp/gstrtspsrc.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index 15bf5cfc7..92c4efc56 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -2247,9 +2247,7 @@ unknown_stream:
static void
gst_rtspsrc_do_stream_eos (GstRTSPSrc * src, GstRTSPStream * stream)
{
- guint session = stream->id;
-
- GST_DEBUG_OBJECT (src, "setting stream for session %u to EOS", session);
+ GST_DEBUG_OBJECT (src, "setting stream for session %u to EOS", stream->id);
if (stream->eos)
goto was_eos;
@@ -2261,7 +2259,7 @@ gst_rtspsrc_do_stream_eos (GstRTSPSrc * src, GstRTSPStream * stream)
/* ERRORS */
was_eos:
{
- GST_DEBUG_OBJECT (src, "stream for session %u was already EOS", session);
+ GST_DEBUG_OBJECT (src, "stream for session %u was already EOS", stream->id);
return;
}
}
@@ -2303,9 +2301,8 @@ on_npt_stop (GstElement * rtpbin, guint session, guint ssrc, GstRTSPSrc * src)
static void
on_ssrc_active (GObject * session, GObject * source, GstRTSPStream * stream)
{
- GstRTSPSrc *src = stream->parent;
-
- GST_DEBUG_OBJECT (src, "source in session %u is active", stream->id);
+ GST_DEBUG_OBJECT (stream->parent, "source in session %u is active",
+ stream->id);
}
/* try to get and configure a manager */