mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-11 18:34:58 +01:00
Work-in progress scaling of sources in geometry view
This commit is contained in:
@@ -225,6 +225,10 @@ void MediaPlayer::close()
|
||||
|
||||
GstClockTime MediaPlayer::duration()
|
||||
{
|
||||
// cannot play an image
|
||||
if (isimage_)
|
||||
return GST_CLOCK_TIME_NONE;
|
||||
|
||||
if (duration_ == GST_CLOCK_TIME_NONE && pipeline_ != nullptr) {
|
||||
gint64 d = GST_CLOCK_TIME_NONE;
|
||||
if ( gst_element_query_duration(pipeline_, GST_FORMAT_TIME, &d) )
|
||||
|
||||
Reference in New Issue
Block a user