Skip to content

Commit

Permalink
vf_sub, vf_format: change license to LGPL
Browse files Browse the repository at this point in the history
They were added to the "to deleted" list and never relicensed, because I
thought I'd delete them early. But it's possible that they'll stay in
mpv for a longer time, so relicense them. Still leaving them as
deprecated and scheduled for removal, so they can still be dropped once
there is a better way to deal with them, if they get annoying, or if a
better mechanism is found that makes them unnecessary.

All contributors agreed. There are some minor changes by people who did
not agree, but these are all not relevant or have been removed.
  • Loading branch information
wm4 committed Nov 29, 2017
1 parent 12cac1d commit 194ec2b
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 28 deletions.
2 changes: 0 additions & 2 deletions Copyright
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ The following files are still GPL only (--enable-lgpl disables them):
stream/stream_smb.c will stay GPLv3
stream/stream_tv.c will stay GPL
stream/tv* will stay GPL
video/filter/vf_format.c will be deleted
video/filter/vf_sub.c will be deleted
video/out/opengl/hwdec_vaglx.c GPL
video/out/vo_caca.c unknown
video/out/vo_direct3d.c unknown
Expand Down
19 changes: 7 additions & 12 deletions video/filter/vf_format.c
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
/*
* This file is part of mpv.
*
* mpv is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* mpv is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* mpv is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with mpv. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Lesser General Public
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/

#include <stdio.h>
Expand All @@ -32,11 +32,6 @@

#include "options/m_option.h"

#include "config.h"
#if !HAVE_GPL
#error GPL only
#endif

struct vf_priv_s {
int fmt;
int outfmt;
Expand Down
20 changes: 8 additions & 12 deletions video/filter/vf_sub.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,20 +3,21 @@
*
* This file is part of mpv.
*
* mpv is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
* mpv is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* mpv is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with mpv. If not, see <http://www.gnu.org/licenses/>.
* You should have received a copy of the GNU Lesser General Public
* License along with mpv. If not, see <http://www.gnu.org/licenses/>.
*/


#include "config.h"

#include <stdio.h>
Expand All @@ -40,11 +41,6 @@

#include "options/m_option.h"

#include "config.h"
#if !HAVE_GPL
#error GPL only
#endif

struct vf_priv_s {
int opt_top_margin, opt_bottom_margin;

Expand Down
4 changes: 2 additions & 2 deletions wscript_build.py
Original file line number Diff line number Diff line change
Expand Up @@ -376,9 +376,9 @@ def build(ctx):
( "video/filter/vf_buffer.c" ),
( "video/filter/vf_convert.c" ),
( "video/filter/vf_d3d11vpp.c", "d3d-hwaccel" ),
( "video/filter/vf_format.c", "gpl" ),
( "video/filter/vf_format.c" ),
( "video/filter/vf_lavfi.c" ),
( "video/filter/vf_sub.c", "gpl" ),
( "video/filter/vf_sub.c" ),
( "video/filter/vf_vapoursynth.c", "vapoursynth-core" ),
( "video/filter/vf_vavpp.c", "vaapi" ),
( "video/filter/vf_vdpaupp.c", "vdpau" ),
Expand Down

0 comments on commit 194ec2b

Please sign in to comment.