gnomemm r1297 - in gstreamermm/trunk: . examples/ogg_player



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]