gnomemm r1297 - in gstreamermm/trunk: . examples/ogg_player
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1297 - in gstreamermm/trunk: . examples/ogg_player
- Date: Tue, 22 Jan 2008 02:14:51 +0000 (GMT)
Author: jaalburqu
Date: Tue Jan 22 02:14:51 2008
New Revision: 1297
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1297&view=rev
Log:
2008-01-21 Josà Alburquerque <jaalburqu svn gnome org>
* examples/ogg_player/main.cc: moved Gst::QueryPosition cast in
print_stream_position() inside the if block (after sending Gst::Query)
to avoid warnings
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/examples/ogg_player/main.cc
Modified: gstreamermm/trunk/examples/ogg_player/main.cc
==============================================================================
--- gstreamermm/trunk/examples/ogg_player/main.cc (original)
+++ gstreamermm/trunk/examples/ogg_player/main.cc Tue Jan 22 02:14:51 2008
@@ -15,12 +15,12 @@
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)) {
+ Glib::RefPtr<Gst::QueryPosition> posQuery =
+ Glib::RefPtr<Gst::QueryPosition>::cast_dynamic(query);
+
posQuery->parse(fmt, pos);
std::cout << std::right << "Time: " << std::setfill('0') <<
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]