[farsight2/master] Check if its the right type of bus message

Olivier Crête olivier.crete at collabora.co.uk
Tue Dec 23 15:22:08 PST 2008


---
 tests/check/main/rtpsendcodecs.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/tests/check/main/rtpsendcodecs.c b/tests/check/main/rtpsendcodecs.c
index d635109..73df5a8 100644
--- a/tests/check/main/rtpsendcodecs.c
+++ b/tests/check/main/rtpsendcodecs.c
@@ -64,7 +64,9 @@ _bus_callback (GstBus *bus, GstMessage *message, gpointer user_data)
   {
     case GST_MESSAGE_ELEMENT:
       if (gst_implements_interface_check (GST_MESSAGE_SRC (message),
-              FS_TYPE_CONFERENCE))
+              FS_TYPE_CONFERENCE) &&
+          gst_structure_has_name (gst_message_get_structure (message),
+              "farsight-error"))
       {
         const GValue *errorvalue, *debugvalue;
         gint errno;
-- 
1.5.6.5




More information about the farsight-commits mailing list