gnomemm r1296 - in gstreamermm/trunk: . examples/ogg_player
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1296 - in gstreamermm/trunk: . examples/ogg_player
- Date: Mon, 21 Jan 2008 23:55:05 +0000 (GMT)
Author: jaalburqu
Date: Mon Jan 21 23:55:05 2008
New Revision: 1296
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1296&view=rev
Log:
2008-01-21 Josà Alburquerque <jaalburqu svn gnome org>
* AUTHORS: Updated author list
* examples/ogg_player/example: deleted binary executable
* examples/ogg_player/main.cc: modified to use Gst::QueryPosition to
get stream position
Removed:
gstreamermm/trunk/examples/ogg_player/example
Modified:
gstreamermm/trunk/AUTHORS
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/examples/ogg_player/main.cc
Modified: gstreamermm/trunk/AUTHORS
==============================================================================
--- gstreamermm/trunk/AUTHORS (original)
+++ gstreamermm/trunk/AUTHORS Mon Jan 21 23:55:05 2008
@@ -1,4 +1,10 @@
-In alphabetical order:
+Please use the mailing list (gtkmm-list gnome org) instead of emailing
+developers directly. See the ChangeLog for up-to-date information.
+
+Josà Alburquerque <daniel elstner gmx net>
+Murray Cumming <murrayc usa net>
+Milosz Derezynski <internalerror gmail com>
+Siavash Safi <siavash safi gmail com>
+
+Some former contributors:
-Milosz DEREZYNSKI <internalerror gmail com>
-Siavash SAFI
Modified: gstreamermm/trunk/examples/ogg_player/main.cc
==============================================================================
--- gstreamermm/trunk/examples/ogg_player/main.cc (original)
+++ gstreamermm/trunk/examples/ogg_player/main.cc Mon Jan 21 23:55:05 2008
@@ -13,9 +13,16 @@
gint64 pos = 0;
gint64 len = 0;
- if (pipeline->query_position(fmt, pos)
+ Glib::RefPtr<Gst::Query> query = Gst::QueryPosition::create(fmt);
+
+ Glib::RefPtr<Gst::QueryPosition> posQuery =
+ Glib::RefPtr<Gst::QueryPosition>::cast_dynamic(query);
+
+ if (pipeline->query(query)
&& pipeline->query_duration(fmt, len)) {
+ posQuery->parse(fmt, pos);
+
std::cout << std::right << "Time: " << std::setfill('0') <<
std::setw(3) << Gst::get_hours(pos) << ":" <<
std::setw(2) << Gst::get_minutes(pos) << ":" <<
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]