conf: report errors when parsing video resolution
conf: report errors when parsing video resolution

The current code doesn't properly handle errors when parsing a video
device's resolution.  We were returning a NULL structure for the case
where 'x' or 'y' were missing. But for the other error cases, we were
logging an error (virReportError()), but still returning an
under-specified structure. That under-specified structure was used by
the calling function rather than properly reporting an error.

This patch changes the parse function to return NULL on any parsing
error and changes the calling function to report an error when NULL is
returned.

Reviewed-by: Cole Robinson <7cd45ff6ad1fb7cf556a02797d774247851499f8@redhat.com>
Signed-off-by: Jonathon Jongsma <c7254805a17bd5c41e24c3a278fcbf3afcdfb0fa@redhat.com>

libvirt/libvirt,jardasgit/libvirt,libvirt/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,crobinso/libvirt,zippy2/libvirt,olafhering/libvirt,jfehlig/libvirt,jfehlig/libvirt,olafhering/libvirt,zippy2/libvirt,olafhering/libvirt,crobinso/libvirt,nertpinx/libvirt,fabianfreyer/libvirt,jardasgit/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,fabianfreyer/libvirt,nertpinx/libvirt,nertpinx/libvirt,zippy2/libvirt,libvirt/libvirt,nertpinx/libvirt,crobinso/libvirt,jardasgit/libvirt,zippy2/libvirt,libvirt/libvirt,olafhering/libvirt,fabianfreyer/libvirt,jfehlig/libvirt,crobinso/libvirt,jfehlig/libvirt,nertpinx/libvirt