summaryrefslogtreecommitdiffstats
path: root/stream/tvi_dummy.c
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-13 18:00:51 +0200
committerwm4 <wm4@nowhere>2014-04-13 18:03:01 +0200
commit78128bddda4bcea1f256fc13cc33fa2652ed277c (patch)
tree35bf6596cb8e2d7927618845833c3ee36534f890 /stream/tvi_dummy.c
parent44f382cf98564c0fe08bdc78579c284362cd6f3c (diff)
downloadmpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.bz2
mpv-78128bddda4bcea1f256fc13cc33fa2652ed277c.tar.xz
Kill all tabs
I hate tabs. This replaces all tabs in all source files with spaces. The only exception is old-makefile. The replacement was made by running the GNU coreutils "expand" command on every file. Since the replacement was automatic, it's possible that some formatting was destroyed (but perhaps only if it was assuming that the end of a tab does not correspond to aligning the end to multiples of 8 spaces).
Diffstat (limited to 'stream/tvi_dummy.c')
-rw-r--r--stream/tvi_dummy.c70
1 files changed, 35 insertions, 35 deletions
diff --git a/stream/tvi_dummy.c b/stream/tvi_dummy.c
index 0d9e86c210..3ce47f7a7c 100644
--- a/stream/tvi_dummy.c
+++ b/stream/tvi_dummy.c
@@ -27,11 +27,11 @@
static tvi_handle_t *tvi_init_dummy(struct mp_log *log, tv_param_t* tv_param);
/* information about this file */
const tvi_info_t tvi_info_dummy = {
- tvi_init_dummy,
- "NULL-TV",
- "dummy",
- "alex",
- NULL
+ tvi_init_dummy,
+ "NULL-TV",
+ "dummy",
+ "alex",
+ NULL
};
/* private data's */
@@ -71,36 +71,36 @@ static int do_control(priv_t *priv, int cmd, void *arg)
{
switch(cmd)
{
- case TVI_CONTROL_IS_VIDEO:
- return TVI_CONTROL_TRUE;
- case TVI_CONTROL_VID_GET_FORMAT:
- *(int *)arg = MP_FOURCC_YV12;
- return TVI_CONTROL_TRUE;
- case TVI_CONTROL_VID_SET_FORMAT:
- {
-// int req_fmt = *(int *)arg;
- int req_fmt = *(int *)arg;
- if (req_fmt != MP_FOURCC_YV12)
- return TVI_CONTROL_FALSE;
- return TVI_CONTROL_TRUE;
- }
- case TVI_CONTROL_VID_SET_WIDTH:
- priv->width = *(int *)arg;
- return TVI_CONTROL_TRUE;
- case TVI_CONTROL_VID_GET_WIDTH:
- *(int *)arg = priv->width;
- return TVI_CONTROL_TRUE;
- case TVI_CONTROL_VID_SET_HEIGHT:
- priv->height = *(int *)arg;
- return TVI_CONTROL_TRUE;
- case TVI_CONTROL_VID_GET_HEIGHT:
- *(int *)arg = priv->height;
- return TVI_CONTROL_TRUE;
- case TVI_CONTROL_VID_CHK_WIDTH:
- case TVI_CONTROL_VID_CHK_HEIGHT:
- return TVI_CONTROL_TRUE;
- case TVI_CONTROL_TUN_SET_NORM:
- return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_IS_VIDEO:
+ return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_VID_GET_FORMAT:
+ *(int *)arg = MP_FOURCC_YV12;
+ return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_VID_SET_FORMAT:
+ {
+// int req_fmt = *(int *)arg;
+ int req_fmt = *(int *)arg;
+ if (req_fmt != MP_FOURCC_YV12)
+ return TVI_CONTROL_FALSE;
+ return TVI_CONTROL_TRUE;
+ }
+ case TVI_CONTROL_VID_SET_WIDTH:
+ priv->width = *(int *)arg;
+ return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_VID_GET_WIDTH:
+ *(int *)arg = priv->width;
+ return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_VID_SET_HEIGHT:
+ priv->height = *(int *)arg;
+ return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_VID_GET_HEIGHT:
+ *(int *)arg = priv->height;
+ return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_VID_CHK_WIDTH:
+ case TVI_CONTROL_VID_CHK_HEIGHT:
+ return TVI_CONTROL_TRUE;
+ case TVI_CONTROL_TUN_SET_NORM:
+ return TVI_CONTROL_TRUE;
}
return TVI_CONTROL_UNKNOWN;
}