gnomemm r1544 - in gstreamermm/trunk: . examples/media_player_gtkmm examples/ogg_player_gtkmm
- From: jaalburqu svn gnome org
- To: svn-commits-list gnome org
- Subject: gnomemm r1544 - in gstreamermm/trunk: . examples/media_player_gtkmm examples/ogg_player_gtkmm
- Date: Fri, 30 May 2008 04:35:25 +0000 (UTC)
Author: jaalburqu
Date: Fri May 30 04:35:25 2008
New Revision: 1544
URL: http://svn.gnome.org/viewvc/gnomemm?rev=1544&view=rev
Log:
2008-05-30 Josà Alburquerque <jaalburqu svn gnome org>
* examples/media_player_gtkmm/player_window.cc: Used regular types
instead of Glib::Value<> when setting/getting structure fields.
* examples/ogg_player_gtkmm/player_window.cc: Used newly wrapped
Gst::SECOND (instead of GST_SECOND).
Modified:
gstreamermm/trunk/ChangeLog
gstreamermm/trunk/examples/media_player_gtkmm/player_window.cc
gstreamermm/trunk/examples/ogg_player_gtkmm/player_window.cc
Modified: gstreamermm/trunk/examples/media_player_gtkmm/player_window.cc
==============================================================================
--- gstreamermm/trunk/examples/media_player_gtkmm/player_window.cc (original)
+++ gstreamermm/trunk/examples/media_player_gtkmm/player_window.cc Fri May 30 04:35:25 2008
@@ -177,8 +177,8 @@
Glib::RefPtr<Gst::Buffer> buffer = Glib::RefPtr<Gst::Buffer>::cast_dynamic(data);
if(buffer) {
- Glib::Value<int> width_value;
- Glib::Value<int> height_value;
+ int width_value;
+ int height_value;
Glib::RefPtr<Gst::Caps> caps = buffer->get_caps();
@@ -189,7 +189,7 @@
structure.get_field("height", height_value);
}
- m_video_area.set_size_request(width_value.get(), height_value.get());
+ m_video_area.set_size_request(width_value, height_value);
// Resize to minimum when first playing by making size
// smallest then resizing according to video new size:
@@ -292,7 +292,7 @@
void PlayerWindow::on_button_rewind()
{
- static const gint64 skipAmount = GST_SECOND * 2;
+ static const gint64 skipAmount = Gst::SECOND * 2;
gint64 pos = 0;
Gst::Format fmt = Gst::FORMAT_TIME;
@@ -312,7 +312,7 @@
void PlayerWindow::on_button_forward()
{
- static const gint64 skipAmount = GST_SECOND * 3;
+ static const gint64 skipAmount = Gst::SECOND * 3;
gint64 pos = 0;
Gst::Format fmt = Gst::FORMAT_TIME;
Modified: gstreamermm/trunk/examples/ogg_player_gtkmm/player_window.cc
==============================================================================
--- gstreamermm/trunk/examples/ogg_player_gtkmm/player_window.cc (original)
+++ gstreamermm/trunk/examples/ogg_player_gtkmm/player_window.cc Fri May 30 04:35:25 2008
@@ -211,7 +211,7 @@
void PlayerWindow::on_button_rewind()
{
- static const gint64 skip_amount = GST_SECOND * 2;
+ static const gint64 skip_amount = Gst::SECOND * 2;
gint64 pos = 0;
Gst::Format fmt = Gst::FORMAT_TIME;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]