diff options
author | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:26:13 +0300 |
---|---|---|
committer | Uoti Urpala <uau@glyph.nonexistent.invalid> | 2009-07-07 02:34:35 +0300 |
commit | 0eb321bf2c1cc0e048faff26a01f86cdd3ec254f (patch) | |
tree | 71cb9bd9ed121156d3382066c0722c73189afe04 /libvo/vo_ivtv.c | |
parent | 6d908205fbadbdf7ccdc6c5e0eb918f0b43f16e0 (diff) | |
download | mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.bz2 mpv-0eb321bf2c1cc0e048faff26a01f86cdd3ec254f.tar.xz |
Remove trailing whitespace from most files
Diffstat (limited to 'libvo/vo_ivtv.c')
-rw-r--r-- | libvo/vo_ivtv.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/libvo/vo_ivtv.c b/libvo/vo_ivtv.c index 94daaa577b..b80ed44dd9 100644 --- a/libvo/vo_ivtv.c +++ b/libvo/vo_ivtv.c @@ -65,7 +65,7 @@ static const opt_t subopts[] = { {NULL} }; -static const vo_info_t info = +static const vo_info_t info = { "IVTV MPEG Video Decoder TV-Out", "ivtv", @@ -86,17 +86,17 @@ ivtv_reset (int blank_screen) if (blank_screen) flags |= IVTV_STOP_FL_HIDE_FRAME; sd.flags = flags; - + if (ioctl (ivtv_fd, IVTV_IOC_STOP_DECODE, &sd) < 0) { mp_msg (MSGT_VO, MSGL_ERR, "IVTV_IOC_STOP_DECODE: %s\n", strerror (errno)); return 1; } - + sd1.gop_offset = 0; sd1.muted_audio_frames = 0; - + if (ioctl (ivtv_fd, IVTV_IOC_START_DECODE, &sd1) < 0) { mp_msg (MSGT_VO, MSGL_ERR, @@ -112,7 +112,7 @@ ivtv_write (const unsigned char *data, int len) { if (ivtv_fd < 0) return 0; - + return write (ivtv_fd, data, len); } @@ -145,13 +145,13 @@ preinit (const char *arg) "\n" ); return -1; } - + if (!device) - device = strdup (DEFAULT_MPEG_DECODER); - + device = strdup (DEFAULT_MPEG_DECODER); + ivtv_fd = open (device, O_RDWR); if (ivtv_fd < 0) - { + { free (device); mp_msg (MSGT_VO, MSGL_FATAL, "%s %s\n", IVTV_VO_HDR, strerror (errno)); return -1; @@ -212,7 +212,7 @@ preinit (const char *arg) "%s can't get output (%s).\n", IVTV_VO_HDR, strerror (errno)); return -1; } - + /* clear output */ ivtv_reset (1); @@ -280,7 +280,7 @@ query_format (uint32_t format) { if (format != IMGFMT_MPEGPES) return 0; - + return VFCAP_CSP_SUPPORTED | VFCAP_CSP_SUPPORTED_BY_HW | VFCAP_TIMER; } @@ -289,16 +289,16 @@ control (uint32_t request, void *data) { switch (request) { - case VOCTRL_PAUSE: - case VOCTRL_RESUME: + case VOCTRL_PAUSE: + case VOCTRL_RESUME: return ivtv_reset (0); - case VOCTRL_RESET: + case VOCTRL_RESET: return ivtv_reset (1); case VOCTRL_QUERY_FORMAT: return query_format (*((uint32_t*) data)); } - + return VO_NOTIMPL; } |