rtpbin: small cleanup.
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Sep 2010 14:03:50 +0000 (16:03 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Mon, 13 Sep 2010 14:25:42 +0000 (16:25 +0200)
gst/rtpmanager/gstrtpbin.c

index add811b3740c2066ba881e31268bc30cd0de2593..277007aa493f337a46f00be1d6abcc016c6d5b6c 100644 (file)
@@ -1823,7 +1823,9 @@ gst_rtp_bin_set_property (GObject * object, guint prop_id,
       rtpbin->use_pipeline_clock = g_value_get_boolean (value);
       for (sessions = rtpbin->sessions; sessions;
           sessions = g_slist_next (sessions)) {
-        g_object_set (G_OBJECT (((GstRtpBinSession *) sessions->data)->session),
+        GstRtpBinSession *session = (GstRtpBinSession *) sessions->data;
+
+        g_object_set (G_OBJECT (session->session),
             "use-pipeline-clock", rtpbin->use_pipeline_clock, NULL);
       }
       GST_RTP_BIN_UNLOCK (rtpbin);