gstpipeline: fix failed assertion caused by seeking pipeline with NULL clock
authorNate Bogdanowicz <natezb@gmail.com>
Sat, 2 Feb 2013 19:55:52 +0000 (11:55 -0800)
committerWim Taymans <wim.taymans@collabora.co.uk>
Tue, 5 Feb 2013 13:23:20 +0000 (14:23 +0100)
commit6b717600b578390cb7a88fc86bc94c5a1def8659
tree7b79cab8eb91dc5a1d0c59c7f61c69b6a6e9c2aa
parentea6b05d1260884e3994aef2604d58baf623b0e71
gstpipeline: fix failed assertion caused by seeking pipeline with NULL clock

Under certain GST_STATE_CHANGED_PAUSED_TO_PLAYING transitions, a pipeline with
a NULL clock will fail an assertion due to an unchecked call to gst_object_ref().
This is fixed by simply adding a check and only ref-ing if the clock is not NULL.

https://bugzilla.gnome.org/show_bug.cgi?id=693065
gst/gstpipeline.c