Skip to content
This repository has been archived by the owner on Apr 11, 2018. It is now read-only.

Commit

Permalink
script nits: remove obsolete comments/workarounds
Browse files Browse the repository at this point in the history
  • Loading branch information
chocolateboy committed Jul 20, 2014
1 parent 70ff370 commit ad9f4a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
8 changes: 2 additions & 6 deletions src/main/resources/scripts/dshow.groovy
@@ -1,17 +1,13 @@
// videostream.Web,Screen=Screen,pmsencoder://dshow
// see: https://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20grab%20the%20desktop%20%28screen%29%20with%20FFmpeg

// since this produces an invalid URI (i.e. video="UScreenCapture"),
// we need to run it as late as possible so that it doesn't break
// scripts that call uri()

import com.sun.jna.Platform

script (END) {
script {
profile ('pmsencoder://dshow') {
pattern {
match { Platform.isWindows() }
match uri: '^pmsencoder://dshow\\b'
match { uri == 'pmsencoder://dshow' }
}

action {
Expand Down
7 changes: 2 additions & 5 deletions src/main/resources/scripts/x11grab.groovy
@@ -1,12 +1,9 @@
// videostream.Web,Screen=Screen,pmsencoder://show
// videostream.Web,Screen=Screen,pmsencoder://x11grab
// http://ffmpeg.org/trac/ffmpeg/wiki/How%20to%20grab%20the%20desktop%20%28screen%29%20with%20FFmpeg

// since this produces an invalid URI (e.g. :0.0), we need to run
// it as late as possible so that it doesn't break
// scripts that call uri()
import com.sun.jna.Platform

script (END) {
script {
profile ('pmsencoder://x11grab') {
pattern {
match { !Platform.isWindows() }
Expand Down

0 comments on commit ad9f4a0

Please sign in to comment.