[SCM] lives/master: debian/patches/13-svn_rev718.patch: Small fix for 'nervous' key. Add key to show sync stats.

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Wed Sep 15 07:42:45 UTC 2010


The following commit has been merged in the master branch:
commit faff1ac44a7846631ef90989e1f8d683a4e6af99
Author: Alessio Treglia <alessio at debian.org>
Date:   Wed Sep 15 09:42:17 2010 +0200

    debian/patches/13-svn_rev718.patch: Small fix for 'nervous' key. Add key to show sync stats.

diff --git a/debian/patches/13-svn_rev718.patch b/debian/patches/13-svn_rev718.patch
new file mode 100644
index 0000000..75fc6f4
--- /dev/null
+++ b/debian/patches/13-svn_rev718.patch
@@ -0,0 +1,89 @@
+Description: Add key to show sync stats.
+ Small fix for 'nervous' key.
+Origin: upstream, commit:718
+Applied-Upstream: commit:718
+---
+ src/callbacks.c |   44 ++++++++++++++++++++++++++++++++++++++++++++
+ src/callbacks.h |    2 ++
+ src/gui.c       |    2 ++
+ 3 files changed, 48 insertions(+)
+
+--- lives.orig/src/callbacks.c
++++ lives/src/callbacks.c
+@@ -8241,10 +8241,54 @@ gboolean freeze_callback (GtkAccelGroup
+ 
+ gboolean nervous_callback (GtkAccelGroup *group, GObject *obj, guint keyval, GdkModifierType mod, gpointer clip_number)
+ {
++  if (mainw->multitrack!=NULL) return FALSE;
+   mainw->nervous=!mainw->nervous;
+   return TRUE;
+ }
+ 
++
++gboolean show_sync_callback (GtkAccelGroup *group, GObject *obj, guint keyval, GdkModifierType mod, gpointer clip_number)
++{
++  gdouble avsync;
++  gchar *msg;
++
++  gint last_dprint_file;
++
++  if (mainw->playing_file<0) return FALSE;
++
++  if (cfile->frames==0||cfile->achans==0) return FALSE;
++
++  if (prefs->audio_player==AUD_PLAYER_JACK) {
++#ifdef ENABLE_JACK
++    if (mainw->jackd!=NULL&&mainw->jackd->in_use) avsync=(gdouble)mainw->pulsed->seek_pos/cfile->arate/cfile->achans/cfile->asampsize*8;
++    else return FALSE;
++#else
++    return FALSE;
++#endif
++  }
++
++  if (prefs->audio_player==AUD_PLAYER_PULSE) {
++#ifdef HAVE_PULSE_AUDIO
++    if (mainw->pulsed!=NULL&&mainw->pulsed->in_use) avsync=(gdouble)mainw->pulsed->seek_pos/cfile->arate/cfile->achans/cfile->asampsize*8;
++    else return FALSE;
++#else
++    return FALSE;
++#endif
++  }
++  else return FALSE;
++
++  avsync-=(mainw->actual_frame-1.)/cfile->fps;
++
++  msg=g_strdup_printf(_("Audio is ahead of video by %.4f secs. at frame %d, with fps %.4f\n"),avsync,mainw->actual_frame,cfile->pb_fps);
++  last_dprint_file=mainw->last_dprint_file;
++  mainw->no_switch_dprint=TRUE;
++  d_print(msg);
++  mainw->no_switch_dprint=FALSE;
++  mainw->last_dprint_file=last_dprint_file;
++  g_free(msg);
++  return TRUE;
++}
++
+ 
+ 
+ gboolean storeclip_callback (GtkAccelGroup *group, GObject *obj, guint keyval, GdkModifierType mod, gpointer clip_number)
+--- lives.orig/src/callbacks.h
++++ lives/src/callbacks.h
+@@ -707,6 +707,8 @@ gboolean storeclip_callback (GtkAccelGro
+ 
+ gboolean nervous_callback (GtkAccelGroup *, GObject *, guint, GdkModifierType, gpointer user_data);
+ 
++gboolean show_sync_callback (GtkAccelGroup *group, GObject *obj, guint keyval, GdkModifierType mod, gpointer clip_number);
++
+ void on_save_set_activate (GtkMenuItem *, gpointer user_data);
+ 
+ void on_save_set_ok (void);
+--- lives.orig/src/gui.c
++++ lives/src/gui.c
+@@ -2197,6 +2197,8 @@ create_LiVES (void)
+ 
+   gtk_accel_group_connect (GTK_ACCEL_GROUP (mainw->accel_group), GDK_n, 0, 0, g_cclosure_new (G_CALLBACK (nervous_callback),NULL,NULL));
+ 
++  gtk_accel_group_connect (GTK_ACCEL_GROUP (mainw->accel_group), GDK_w, 0, 0, g_cclosure_new (G_CALLBACK (show_sync_callback),NULL,NULL));
++
+   if (FN_KEYS>0) {
+     gtk_accel_group_connect (GTK_ACCEL_GROUP (mainw->accel_group), GDK_F1, 0, 0, g_cclosure_new (G_CALLBACK (storeclip_callback),GINT_TO_POINTER (1),NULL));
+     if (FN_KEYS>1) {
diff --git a/debian/patches/series b/debian/patches/series
index 4093691..55a73bc 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 02-drop_py3_multiencoder.patch
 11-svn_rev715.patch
 12-svn_rev716.patch
+13-svn_rev718.patch

-- 
lives packaging



More information about the pkg-multimedia-commits mailing list