GNOME Bugzilla – Bug 301158
2 casts of buf in the gst_ximagesink_chain function (ximagesink plugin)
Last modified: 2005-04-19 11:25:46 UTC
In gst_ximagesink_chain (ximagesink plugin), buf is casted 2 times (lines 1097 and 11112) One of them is useless, imho
There's not run-time type checking involved in GST_BUFFER(data), so the cast is basically free. I guess it's not very pedagogical though to cast using GST_BUFFER() and then later to check whether it's an event with GST_IS_EVENT(). That's done in plenty of plugins though, unfortunately. Anyway, fixed in CVS, thanks. Cheers -Tim