libsaria: Fix finding audio duration

I needed to pass in a value for the format argument...
This commit is contained in:
Bryan Schumaker 2011-09-03 23:09:31 -04:00
parent c2c3a1eea9
commit bd6aea830b
1 changed files with 2 additions and 1 deletions

View File

@ -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);
}