fix segfault

Original commit message from CVS:
fix segfault
This commit is contained in:
Andy Wingo 2002-07-04 16:03:48 +00:00
parent 299228a338
commit 28fb7d2c39

View file

@ -406,7 +406,8 @@ print_element_info (GstElementFactory *factory)
GstClock *clock;
clock = gst_element_get_clock (element);
printf(" element provides a clock: %s\n", GST_OBJECT_NAME(clock));
if (clock)
printf(" element provides a clock: %s\n", GST_OBJECT_NAME(clock));
have_flags = TRUE;
}
if (!have_flags) {