GNOME Bugzilla – Bug 741425
debugutils: Add a gst_debug_bin_to_dot_data() method
Last modified: 2014-12-12 12:48:09 UTC
This provides the dot file as a string, rather than dumping to a file.
Created attachment 292590 [details] [review] debugutils: Add a gst_debug_dump_dot_data() method
Created attachment 292591 [details] [review] Get the function name right. :/
Review of attachment 292591 [details] [review]: Looks good to me, but maybe it would be simpler to just always use the to_dot_data() method and write it to a file if needed afterwards?
I separated the two paths as a bit of a premature micro-optimisation (so we don't allocate a bunch of potentially large string buffers for the write-to-file case).
Yeah, I think it's ok as is but I'm a bit worried about maintainability and readability of that code and if it is really worth the potential trouble :)
Created attachment 292609 [details] [review] debugutils: Add a gst_debug_bin_to_dot_data() method Fair enough, I see your point, simplified this now to always use the string-building path.
Review of attachment 292609 [details] [review]: Looks good, thanks :)
Thanks for the quick review :)