Skip to content

Commit 4a8adcc

Browse files
authored
Merge pull request #673 from pdfpc/fix-672
Skip MOVIE actions when configured with -DMOVIES
2 parents dac0674 + a650108 commit 4a8adcc

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/classes/action/link_action.vala

+6
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ namespace pdfpc {
4747
this.action = mapping.action.copy();
4848
}
4949

50+
#if MOVIES
5051
/**
5152
* Find movie on the current slide by its filename; there seems to be
5253
* no better way with the current Glib Poppler bindings.
@@ -71,6 +72,7 @@ namespace pdfpc {
7172

7273
return null;
7374
}
75+
#endif
7476

7577
/**
7678
* Create from the LinkMapping if the link is an internal link to a named
@@ -91,6 +93,7 @@ namespace pdfpc {
9193
return new_obj as ActionMapping;
9294
}
9395
break;
96+
#if MOVIES
9497
case Poppler.ActionType.MOVIE:
9598
unowned var movie_action = (Poppler.ActionMovie*) mapping.action;
9699
var movie = movie_action.movie;
@@ -100,6 +103,7 @@ namespace pdfpc {
100103
return new_obj as ActionMapping;
101104
}
102105
break;
106+
#endif
103107
default:
104108
break;
105109
}
@@ -167,6 +171,7 @@ namespace pdfpc {
167171
this.controller.switch_to_slide_number(slide_number);
168172

169173
break;
174+
#if MOVIES
170175
case Poppler.ActionType.MOVIE:
171176
unowned var action = (Poppler.ActionMovie*) this.action;
172177
var movie = action.movie;
@@ -192,6 +197,7 @@ namespace pdfpc {
192197
}
193198
}
194199
break;
200+
#endif
195201
default:
196202
return false;
197203
}

0 commit comments

Comments
 (0)