]> git.sesse.net Git - vlc/blobdiff - plugins/gnome/gnome_callbacks.c
* Ported Glide and MGA plugins to the new module API. MGA never worked,
[vlc] / plugins / gnome / gnome_callbacks.c
index 072bced4a1b7a4af07f75e385424e787f985ce7f..53bb37631c4d6e9868a4ea5a904218b603190d1e 100644 (file)
@@ -20,6 +20,9 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
+#define MODULE_NAME gnome
+#include "modules_inner.h"
+
 /*****************************************************************************
  * Preamble
  *****************************************************************************/
@@ -438,7 +441,8 @@ on_hscale_button_release_event         (GtkWidget       *widget,
 
     if( p_intf->p_input != NULL )
     {
-        i_seek = (p_adj->value * p_intf->p_input->stream.i_size) / 100;
+        i_seek = (p_adj->value *
+                  p_intf->p_input->stream.pp_areas[0]->i_size) / 100;
         input_Seek( p_intf->p_input, i_seek );
     }
     p_intf->p_sys->b_scale_isfree = 1;