Revision: 233
Author: kdekorte
Date: Wed Oct 30 11:59:05 2013 UTC
Log: Only do the media player allocation event if no video is present
http://code.google.com/p/gmtk/source/detail?r=233
Modified:
/trunk/ChangeLog
/trunk/src/gmtk_media_player.c
/trunk/src/gmtk_media_tracker.c
=======================================
--- /trunk/ChangeLog Mon Oct 14 15:15:25 2013 UTC
+++ /trunk/ChangeLog Wed Oct 30 11:59:05 2013 UTC
@@ -1,4 +1,5 @@
Development
+ Only do the media player allocation event if no video is present
Fix parameter warning to gtk_widget_get_visible
Add backend variable to gmtk.pc
Run autoreconf
=======================================
--- /trunk/src/gmtk_media_player.c Mon Oct 14 15:15:25 2013 UTC
+++ /trunk/src/gmtk_media_player.c Wed Oct 30 11:59:05 2013 UTC
@@ -2381,7 +2381,7 @@
player->seekable = FALSE;
player->has_chapters = FALSE;
- player->video_present = FALSE;
+ //player->video_present = FALSE;
player->position = 0.0;
player->cache_percent = -1.0;
player->title_is_menu = FALSE;
@@ -3385,7 +3385,9 @@
create_event_int(player, "media-state-changed",
player->media_state);
allocation.width = player->video_width;
allocation.height = player->video_height;
- create_event_allocation(player, "size_allocate",
&allocation);
+ if (player->video_present == FALSE) {
+ create_event_allocation(player, "size_allocate",
&allocation);
+ }
player->video_present = TRUE;
buf = g_strdup_printf("set_property sub_visibility %i\n",
player->sub_visible);
write_to_mplayer(player, buf);
=======================================
--- /trunk/src/gmtk_media_tracker.c Sat Jul 7 12:55:12 2012 UTC
+++ /trunk/src/gmtk_media_tracker.c Wed Oct 30 11:59:05 2013 UTC
@@ -205,7 +205,7 @@
gtk_range_set_value(GTK_RANGE(GMTK_MEDIA_TRACKER(tracker)->scale),
position);
g_signal_emit_by_name(tracker, "value-changed", (gint) (100 *
position));
difference = (GMTK_MEDIA_TRACKER(tracker)->length * position) -
GMTK_MEDIA_TRACKER(tracker)->position;
- gm_log(FALSE, G_LOG_LEVEL_MESSAGE, "difference = %lf", difference);
+ gm_log(FALSE, G_LOG_LEVEL_DEBUG, "difference = %lf", difference);
//if (ABS(difference) > 15)
// g_signal_emit_by_name(tracker, "difference-changed",
difference);