Skip to content

Commit 1a77235

Browse files
authored
Merge pull request #272 from ffmpeginteropx/fix-video-effect
2 parents 4b6ed8c + 4009e43 commit 1a77235

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Source/VideoEffectConfiguration.h

+6-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ namespace FFmpegInteropX
1818
float _Tint;
1919
float _Sharpness;
2020
float _SharpnessThreshold;
21-
21+
String^ classId = "FFmpegInteropX.BasicVideoEffect";
2222
public:
2323
///<summary>Adjusts the brightness of the image. Default value is 0, recommended range -1 to 1.</summary>
2424
property float Brightness
@@ -111,29 +111,29 @@ namespace FFmpegInteropX
111111
{
112112
PropertySet^ set = ref new PropertySet();
113113
set->Insert("config", this);
114-
player->AddVideoEffect("FFmpegInterop.BasicVideoEffect", true, set);
114+
player->AddVideoEffect(classId, true, set);
115115
}
116116

117117
[Windows::Foundation::Metadata::DefaultOverloadAttribute]
118118
void AddVideoEffect(MediaPlayer^ player, bool optional)
119119
{
120120
PropertySet^ set = ref new PropertySet();
121121
set->Insert("config", this);
122-
player->AddVideoEffect("FFmpegInterop.BasicVideoEffect", optional, set);
122+
player->AddVideoEffect(classId, optional, set);
123123
}
124124

125125
void AddVideoEffect(MediaElement^ player)
126126
{
127127
PropertySet^ set = ref new PropertySet();
128128
set->Insert("config", this);
129-
player->AddVideoEffect("FFmpegInterop.BasicVideoEffect", true, set);
129+
player->AddVideoEffect(classId, true, set);
130130
}
131131

132132
void AddVideoEffect(MediaElement^ player, bool optional)
133133
{
134134
PropertySet^ set = ref new PropertySet();
135135
set->Insert("config", this);
136-
player->AddVideoEffect("FFmpegInterop.BasicVideoEffect", optional, set);
136+
player->AddVideoEffect(classId, optional, set);
137137
}
138138
};
139-
}
139+
}

0 commit comments

Comments
 (0)