This should be `else if (dest_fmt == GST_FORMAT_BYTES)`, with some handling for the [other possible formats](http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/gstreamer-GstFormat.html#GstFormat).