rtph264pay: Use GST_WARNING_OBJECT() instead of GST_WARNING()
authorSebastian Dröge <sebastian@centricular.com>
Tue, 30 Jun 2015 16:11:33 +0000 (18:11 +0200)
committerSebastian Dröge <sebastian@centricular.com>
Wed, 1 Jul 2015 09:58:26 +0000 (11:58 +0200)
gst/rtp/gstrtph264pay.c

index 665814a..3c565ae 100644 (file)
@@ -736,7 +736,7 @@ gst_rtp_h264_pay_send_sps_pps (GstRTPBasePayload * basepayload,
     /* Not critical here; but throw a warning */
     if (ret != GST_FLOW_OK) {
       sent_all_sps_pps = FALSE;
-      GST_WARNING ("Problem pushing SPS");
+      GST_WARNING_OBJECT (basepayload, "Problem pushing SPS");
     }
   }
   for (i = 0; i < rtph264pay->pps->len; i++) {
@@ -750,7 +750,7 @@ gst_rtp_h264_pay_send_sps_pps (GstRTPBasePayload * basepayload,
     /* Not critical here; but throw a warning */
     if (ret != GST_FLOW_OK) {
       sent_all_sps_pps = FALSE;
-      GST_WARNING ("Problem pushing PPS");
+      GST_WARNING_OBJECT (basepayload, "Problem pushing PPS");
     }
   }