From 0e21c32785a2dd32480ef591365f7f5908c8cee8 Mon Sep 17 00:00:00 2001 From: maroy Date: Tue, 28 Jun 2005 08:43:01 +0000 Subject: [PATCH] added clarification on mp3 playback sink timing issue --- .../modules/gstreamerElements/src/AutoplugTest.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/livesupport/modules/gstreamerElements/src/AutoplugTest.cxx b/livesupport/modules/gstreamerElements/src/AutoplugTest.cxx index 162d13771..f64b98195 100644 --- a/livesupport/modules/gstreamerElements/src/AutoplugTest.cxx +++ b/livesupport/modules/gstreamerElements/src/AutoplugTest.cxx @@ -22,7 +22,7 @@ Author : $Author: maroy $ - Version : $Revision: 1.4 $ + Version : $Revision: 1.5 $ Location : $Source: /home/paul/cvs2svn-livesupport/newcvsrepo/livesupport/modules/gstreamerElements/src/AutoplugTest.cxx,v $ ------------------------------------------------------------------------------*/ @@ -132,7 +132,7 @@ AutoplugTest :: playFile(const char * audioFile) gst_element_link(decoder, sink); gst_bin_add_many(GST_BIN(pipeline), source, decoder, sink, NULL); - gst_element_set_state(source, GST_STATE_PLAYING); + gst_element_set_state(source, GST_STATE_PAUSED); gst_element_set_state(decoder, GST_STATE_PAUSED); gst_element_set_state(sink, GST_STATE_PAUSED); gst_element_set_state(pipeline, GST_STATE_PLAYING); @@ -140,8 +140,8 @@ AutoplugTest :: playFile(const char * audioFile) // iterate until playTo is reached while (gst_bin_iterate(GST_BIN(pipeline))); - /* query the decoder, as for some reason, the sink will return - * unreal numbers */ + /* FIXME: query the decoder, as for some reason, the sink will return + * unreal numbers, when playing back mp3s only! */ format = GST_FORMAT_TIME; gst_element_query(decoder, GST_QUERY_POSITION, &format, &timePlayed);