mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Unified notification of source creation with Source info
New virtual function source::info used for notification after adding source
This commit is contained in:
@@ -46,7 +46,6 @@ MediaSource::~MediaSource()
|
||||
void MediaSource::setPath(const std::string &p)
|
||||
{
|
||||
path_ = p;
|
||||
Log::Notify("Creating Source with media '%s'", path_.c_str());
|
||||
|
||||
// open gstreamer
|
||||
mediaplayer_->open(path_);
|
||||
@@ -74,6 +73,11 @@ glm::ivec2 MediaSource::icon() const
|
||||
return glm::ivec2(18, 13);
|
||||
}
|
||||
|
||||
std::string MediaSource::info() const
|
||||
{
|
||||
return std::string("media '") + path_ + "'";
|
||||
}
|
||||
|
||||
bool MediaSource::failed() const
|
||||
{
|
||||
return mediaplayer_->failed();
|
||||
|
||||
Reference in New Issue
Block a user