diff options
Diffstat (limited to 'tests/check/gnl/gnlcomposition.c')
-rw-r--r-- | tests/check/gnl/gnlcomposition.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/check/gnl/gnlcomposition.c b/tests/check/gnl/gnlcomposition.c index 186d94f..a5b9146 100644 --- a/tests/check/gnl/gnlcomposition.c +++ b/tests/check/gnl/gnlcomposition.c @@ -27,7 +27,7 @@ typedef struct static int composition_pad_added; static int composition_pad_removed; static int seek_events; -static gulong blockprobeid; +static gulong blockprobeid = 0; static GstPadProbeReturn on_source1_pad_event_cb (GstPad * pad, GstPadProbeInfo * info, @@ -243,7 +243,8 @@ pad_block (GstPad * pad, GstPadProbeInfo * info, gpointer user_data) gst_element_add_pad (GST_ELEMENT (bin), ghost); - gst_pad_remove_probe (pad, blockprobeid); + if (blockprobeid) + gst_pad_remove_probe (pad, blockprobeid); return GST_PAD_PROBE_OK; } |