[PATCH 07/13] qedit: Retrieve the Pin media type using a helper function.