audiobasesink: fix misleading error message debug detail
authorTim-Philipp Müller <tim@centricular.com>
Sat, 29 Aug 2015 09:44:28 +0000 (10:44 +0100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 29 Aug 2015 09:44:28 +0000 (10:44 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=754260

gst-libs/gst/audio/gstaudiobasesink.c

index 28988f4..704801e 100644 (file)
@@ -1134,7 +1134,8 @@ gst_audio_base_sink_wait_event (GstBaseSink * bsink, GstEvent * event)
       /* We must have a negotiated format before starting the ringbuffer */
       if (G_UNLIKELY (!gst_audio_ring_buffer_is_acquired (sink->ringbuffer))) {
         GST_ELEMENT_ERROR (sink, STREAM, FORMAT, (NULL),
-            ("Sink not negotiated before GAP event."));
+            ("Sink not negotiated before %s event.",
+                GST_EVENT_TYPE_NAME (event)));
         return GST_FLOW_ERROR;
       }