[0.10] gst-plugins-good: rtspsrc: simplify internal src event debug logging

Tim Müller tpm at kemper.freedesktop.org
Mon Jan 23 15:41:00 PST 2012


Module: gst-plugins-good
Branch: 0.10
Commit: 9bd0ab9f30d992d2d7b8cf4030c9a9a8920a8cf4
URL:    http://cgit.freedesktop.org/gstreamer/gst-plugins-good/commit/?id=9bd0ab9f30d992d2d7b8cf4030c9a9a8920a8cf4

Author: Mark Nauwelaerts <mark.nauwelaerts at collabora.co.uk>
Date:   Fri Jan 20 17:06:42 2012 +0100

rtspsrc: simplify internal src event debug logging

... which avoids almost superfluous obtaining of rtsp element.

---

 gst/rtsp/gstrtspsrc.c |    6 +-----
 1 files changed, 1 insertions(+), 5 deletions(-)

diff --git a/gst/rtsp/gstrtspsrc.c b/gst/rtsp/gstrtspsrc.c
index ffb04ed..de14225 100644
--- a/gst/rtsp/gstrtspsrc.c
+++ b/gst/rtsp/gstrtspsrc.c
@@ -2016,13 +2016,9 @@ gst_rtspsrc_handle_src_event (GstPad * pad, GstEvent * event)
 static gboolean
 gst_rtspsrc_handle_internal_src_event (GstPad * pad, GstEvent * event)
 {
-  GstRTSPSrc *src;
   gboolean res;
 
-  src = GST_RTSPSRC_CAST (gst_pad_get_element_private (pad));
-
-  GST_DEBUG_OBJECT (src, "pad %s:%s received event %s",
-      GST_DEBUG_PAD_NAME (pad), GST_EVENT_TYPE_NAME (event));
+  GST_DEBUG_OBJECT (pad, "received event %s", GST_EVENT_TYPE_NAME (event));
 
   switch (GST_EVENT_TYPE (event)) {
     case GST_EVENT_SEEK:



More information about the gstreamer-commits mailing list