aboutsummaryrefslogtreecommitdiff
path: root/videogrid/videogrid.cc
diff options
context:
space:
mode:
Diffstat (limited to 'videogrid/videogrid.cc')
-rw-r--r--videogrid/videogrid.cc19
1 files changed, 16 insertions, 3 deletions
diff --git a/videogrid/videogrid.cc b/videogrid/videogrid.cc
index 273ab79..e91ed84 100644
--- a/videogrid/videogrid.cc
+++ b/videogrid/videogrid.cc
@@ -1,3 +1,5 @@
+/* some linux distros need this to compile ffmpeg correctly as cpp */
+#define __STDC_CONSTANT_MACROS 1
extern "C"
{
@@ -42,7 +44,16 @@ extern "C"
#include "pthread.h"
/* some linux distros need this to compile ffmpeg correctly as cpp */
- #define __STDC_CONSTANT_MACROS 1
+/* #define __STDC_CONSTANT_MACROS 1 */
+
+/* #ifdef __cplusplus
+ #define __STDC_CONSTANT_MACROS
+ #ifdef _STDINT_H
+ #undef _STDINT_H
+ #endif
+ # include <stdint.h>
+ #endif
+*/
/* ffmpeg includes */
@@ -1294,12 +1305,14 @@ extern "C"
sys_gui("global $var_graph_h_cell\n");
sys_gui("set cmd [concat $id dialog [eval concat $$var_graph_name] [eval concat $$var_graph_num_fil] [eval concat $$var_graph_num_col] [eval concat $$var_graph_color_fons] [eval concat $$var_graph_color_marc] [eval concat $$var_graph_color_grasp] [eval concat $$var_graph_format_list] [eval concat $$var_graph_w_cell] [eval concat $$var_graph_h_cell]\\;]\n");
// puts stderr $cmd
- sys_gui("pd $cmd\n");
+ //sys_gui("pd $cmd\n");
+ sys_gui("pdsend $cmd\n");
sys_gui("}\n");
sys_gui("proc videogrid_cancel {id} {\n");
sys_gui("set cmd [concat $id cancel \\;]\n");
// puts stderr $cmd
- sys_gui("pd $cmd\n");
+ //sys_gui("pd $cmd\n");
+ sys_gui("pdsend $cmd\n");
sys_gui("}\n");
sys_gui("proc videogrid_ok {id} {\n");
sys_gui("videogrid_apply $id\n");