[PATCH] [media-source] Add test to prevent segfault on browse_result_relay_cb



---
 src/grl-media-source.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/src/grl-media-source.c b/src/grl-media-source.c
index 72ee3ef..aab9fdc 100644
--- a/src/grl-media-source.c
+++ b/src/grl-media-source.c
@@ -625,6 +625,8 @@ browse_result_relay_cb (GrlMediaSource *source,
 
   g_debug ("browse_result_relay_cb");
 
+  g_return_if_fail (GRL_IS_MEDIA_SOURCE (source));
+
   brc = (struct BrowseRelayCb *) user_data;
 
   plugin_remaining = remaining;
-- 
1.7.0.4



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]