Diff between f6ac6995b148a4680467afc9beb089431e0b085e and 8e66f28c5c649dad37c04cf32e77b81108eda032
Changed Files
| File | Additions | Deletions | Status |
| src/sdp-xml.c | +5 | -0 | modified |
Full Patch
diff --git a/src/sdp-xml.c b/src/sdp-xml.c
index 054dfbd..32eeaea 100644
--- a/src/sdp-xml.c
+++ b/src/sdp-xml.c
@@ -160,6 +160,11 @@ static void element_end(GMarkupParseContext *context,
return;
}
+ if (!ctx_data->stack_head || !ctx_data->stack_head->data) {
+ DBG("No data for %s", element_name);
+ return;
+ }
+
if (!strcmp(element_name, "sequence")) {
ctx_data->stack_head->data->unitSize = compute_seq_size(ctx_data->stack_head->data);