[nautilus-sound-converter/gst-1-0] Use GST_FORMAT_TIME
- From: Brian Pepple <bpepple src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus-sound-converter/gst-1-0] Use GST_FORMAT_TIME
- Date: Fri, 27 Jul 2012 17:52:52 +0000 (UTC)
commit ca77567752153b9c7fa79cfe3b238288057890e6
Author: Brian Pepple <bpepple fedoraproject org>
Date: Fri Jul 27 13:16:40 2012 -0400
Use GST_FORMAT_TIME
src/nsc-gstreamer.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/src/nsc-gstreamer.c b/src/nsc-gstreamer.c
index 3cf532c..ff60d3b 100644
--- a/src/nsc-gstreamer.c
+++ b/src/nsc-gstreamer.c
@@ -457,7 +457,6 @@ tick_timeout_cb (NscGStreamer *gstreamer)
gint secs;
GstState state;
GstState pending_state;
- static GstFormat format = GST_FORMAT_TIME;
g_return_val_if_fail (NSC_IS_GSTREAMER (gstreamer), FALSE);
@@ -475,7 +474,7 @@ tick_timeout_cb (NscGStreamer *gstreamer)
}
if (!gst_element_query_position (priv->pipeline,
- &format,
+ GST_FORMAT_TIME,
&nanos)) {
g_warning (_("Could not get current file position"));
return TRUE;
@@ -507,7 +506,6 @@ nsc_gstreamer_convert_file (NscGStreamer *gstreamer,
GstStateChangeReturn state_ret;
NscGStreamerPrivate *priv;
gint64 nanos;
- static GstFormat format = GST_FORMAT_TIME;
g_return_if_fail (NSC_IS_GSTREAMER (gstreamer));
@@ -577,7 +575,7 @@ nsc_gstreamer_convert_file (NscGStreamer *gstreamer,
}
/* Get file duration */
- if (!gst_element_query_duration (priv->pipeline, &format, &nanos)) {
+ if (!gst_element_query_duration (priv->pipeline, GST_FORMAT_TIME, &nanos)) {
g_warning (_("Could not get current file duration"));
} else {
gint secs;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]