diff options
author | Stephan Sundermann <ssundermann@gnome.org> | 2014-08-01 15:07:22 +0200 |
---|---|---|
committer | Stephan Sundermann <ssundermann@gnome.org> | 2014-08-01 15:07:22 +0200 |
commit | c0d824ab7b868b7019b10783c51b837feb7c9ef8 (patch) | |
tree | 34cf6b84dede82b248588867c33aa8f3296c23ac /samples | |
parent | e90703356ddb760e4abaf5c47a4fcdde18479cc9 (diff) |
Add sample makefile
Diffstat (limited to 'samples')
-rw-r--r-- | samples/Makefile.am | 21 | ||||
-rw-r--r-- | samples/Playback.cs | 2 |
2 files changed, 22 insertions, 1 deletions
diff --git a/samples/Makefile.am b/samples/Makefile.am new file mode 100644 index 0000000..38d6445 --- /dev/null +++ b/samples/Makefile.am @@ -0,0 +1,21 @@ +TARGETS = playback.exe video-overlay.exe + +DEBUGS = $(addsuffix .mdb, $(TARGETS)) +assemblies = \ + $(top_builddir)/out/gstreamer-sharp.dll + +references=$(addprefix -r:, $(assemblies)) + +noinst_SCRIPTS = $(TARGETS) +CLEANFILES = $(TARGETS) $(DEBUGS) + +playback.exe: $(srcdir)/Playback.cs $(assemblies) + $(CSC) $(CSFLAGS) -out:playback.exe $(references) $(GLIB_SHARP_LIBS) $(srcdir)/Playback.cs + +video-overlay.exe: $(srcdir)/VideoOverlay.cs $(assemblies) + $(CSC) $(CSFLAGS) -out:video-overlay.exe $(references) $(GTK_SHARP_LIBS) $(srcdir)/VideoOverlay.cs + + +EXTRA_DIST = \ + Playback.cs \ + VideoOverlay.cs diff --git a/samples/Playback.cs b/samples/Playback.cs index e7676af..fc53b5c 100644 --- a/samples/Playback.cs +++ b/samples/Playback.cs @@ -28,7 +28,7 @@ namespace GstreamerSharp Loop = new GLib.MainLoop(); Application.Init(ref args); - element = Gst.Parse.ParseLaunch("playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv"); + element = Gst.Parse.Launch("playbin uri=http://ftp.nluug.nl/ftp/graphics/blender/apricot/trailer/Sintel_Trailer1.1080p.DivX_Plus_HD.mkv"); element.Bus.AddSignalWatch(); element.Bus.Message += Handle; |