VlcMedia::VlcMedia(libvlc_media_t *media) { // Create a new libvlc media descriptor from existing one _vlcMedia = libvlc_media_duplicate(media); VlcError::errmsg(); }
Media & Media::operator=(const Media &media) { if (this != &media) { _location = media._location; _fileInfo = QFileInfo(_location); _vlcMedia = libvlc_media_duplicate(media._vlcMedia); } return *this; }