File: gst-default.m4

package info (click to toggle)
gst-plugins-bad1.0 1.0.8-1~bpo70%2B1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy-backports
  • size: 36,832 kB
  • sloc: ansic: 297,908; cpp: 22,677; sh: 13,303; xml: 6,362; makefile: 4,867; perl: 1,435; objc: 1,273; python: 362; sed: 16
file content (120 lines) | stat: -rw-r--r-- 4,084 bytes parent folder | download | duplicates (80)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
dnl default elements used for tests and such

dnl AG_GST_DEFAULT_ELEMENTS

AC_DEFUN([AG_GST_DEFAULT_ELEMENTS],
[
  dnl decide on default elements
  dnl FIXME: describe where exactly this gets used
  dnl FIXME: decide if it's a problem that this could point to sinks from
  dnl        depending plugin modules
  dnl FIXME: when can we just use autoaudiosrc and autovideosrc?
  DEFAULT_AUDIOSINK="autoaudiosink"
  DEFAULT_VIDEOSINK="autovideosink"
  DEFAULT_AUDIOSRC="alsasrc"
  DEFAULT_VIDEOSRC="v4l2src"
  DEFAULT_VISUALIZER="goom"
  case "$host" in
    *-sun-* | *pc-solaris* )
      DEFAULT_AUDIOSRC="sunaudiosrc"
      ;;
    *-darwin* )
      DEFAULT_AUDIOSRC="osxaudiosrc"
      ;;
  esac

  dnl Default audio sink
  AC_ARG_WITH(default-audiosink,
    AC_HELP_STRING([--with-default-audiosink], [specify default audio sink]),
    [
      case "${withval}" in
        yes) AC_MSG_ERROR(bad value ${withval} for --with-default-audiosink) ;;
        no)  AC_MSG_ERROR(bad value ${withval} for --with-default-audiosink) ;;
        *)   DEFAULT_AUDIOSINK="${withval}" ;;
      esac
    ],
    [
      DEFAULT_AUDIOSINK="$DEFAULT_AUDIOSINK"
    ] dnl Default value as determined above
  )
  AC_MSG_NOTICE(Using $DEFAULT_AUDIOSINK as default audio sink)
  AC_SUBST(DEFAULT_AUDIOSINK)
  AC_DEFINE_UNQUOTED(DEFAULT_AUDIOSINK, "$DEFAULT_AUDIOSINK",
    [Default audio sink])

  dnl Default audio source
  AC_ARG_WITH(default-audiosrc,
    AC_HELP_STRING([--with-default-audiosrc], [specify default audio source]),
    [
      case "${withval}" in
        yes) AC_MSG_ERROR(bad value ${withval} for --with-default-audiosrc) ;;
        no)  AC_MSG_ERROR(bad value ${withval} for --with-default-audiosrc) ;;
        *)   DEFAULT_AUDIOSRC="${withval}" ;;
      esac
    ],
    [
      DEFAULT_AUDIOSRC="$DEFAULT_AUDIOSRC"
    ] dnl Default value as determined above
  )
  AC_MSG_NOTICE(Using $DEFAULT_AUDIOSRC as default audio source)
  AC_SUBST(DEFAULT_AUDIOSRC)
  AC_DEFINE_UNQUOTED(DEFAULT_AUDIOSRC, "$DEFAULT_AUDIOSRC",
    [Default audio source])

  dnl Default video sink
  AC_ARG_WITH(default-videosink,
    AC_HELP_STRING([--with-default-videosink], [specify default video sink]),
    [
      case "${withval}" in
        yes) AC_MSG_ERROR(bad value ${withval} for --with-default-videosink) ;;
        no)  AC_MSG_ERROR(bad value ${withval} for --with-default-videosink) ;;
        *)   DEFAULT_VIDEOSINK="${withval}" ;;
      esac
    ],
    [
      DEFAULT_VIDEOSINK="$DEFAULT_VIDEOSINK"
    ] dnl Default value as determined above
  )
  AC_MSG_NOTICE(Using $DEFAULT_VIDEOSINK as default video sink)
  AC_SUBST(DEFAULT_VIDEOSINK)
  AC_DEFINE_UNQUOTED(DEFAULT_VIDEOSINK, "$DEFAULT_VIDEOSINK",
    [Default video sink])

  dnl Default video source
  AC_ARG_WITH(default-videosrc,
    AC_HELP_STRING([--with-default-videosrc], [specify default video source]),
    [
      case "${withval}" in
        yes) AC_MSG_ERROR(bad value ${withval} for --with-default-videosrc) ;;
        no)  AC_MSG_ERROR(bad value ${withval} for --with-default-videosrc) ;;
        *)   DEFAULT_VIDEOSRC="${withval}" ;;
      esac
    ],
    [
      DEFAULT_VIDEOSRC="$DEFAULT_VIDEOSRC"
    ] dnl Default value as determined above
  )
  AC_MSG_NOTICE(Using $DEFAULT_VIDEOSRC as default video source)
  AC_SUBST(DEFAULT_VIDEOSRC)
  AC_DEFINE_UNQUOTED(DEFAULT_VIDEOSRC, "$DEFAULT_VIDEOSRC",
    [Default video source])

    dnl Default visualizer
  AC_ARG_WITH(default-visualizer,
    AC_HELP_STRING([--with-default-visualizer], [specify default visualizer]),
    [
      case "${withval}" in
        yes) AC_MSG_ERROR(bad value ${withval} for --with-default-visualizer) ;;
        no)  AC_MSG_ERROR(bad value ${withval} for --with-default-visualizer) ;;
        *)   DEFAULT_VISUALIZER="${withval}" ;;
      esac
    ],
    [
      DEFAULT_VISUALIZER="$DEFAULT_VISUALIZER"
    ] dnl Default value as determined above
  )
  AC_MSG_NOTICE(Using $DEFAULT_VISUALIZER as default visualizer)
  AC_SUBST(DEFAULT_VISUALIZER)
  AC_DEFINE_UNQUOTED(DEFAULT_VISUALIZER, "$DEFAULT_VISUALIZER",
    [Default visualizer])
])