libsaria: Fix finding audio duration
I needed to pass in a value for the format argument...
This commit is contained in:
parent
c2c3a1eea9
commit
bd6aea830b
|
@ -3,8 +3,9 @@
|
|||
|
||||
bool Audio::get_duration(gint64 &duration)
|
||||
{
|
||||
GstFormat fmt = GST_FORMAT_TIME;
|
||||
return gst_element_query_duration(GST_ELEMENT(player),
|
||||
NULL,
|
||||
&fmt,
|
||||
&duration);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue