mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 18:21:04 +00:00
visual: correct type name
Base class type name should not reference libvisual since not all child elements use this. This was an oversight when merging audiovisualizers into a common base class.
This commit is contained in:
parent
221e661f07
commit
e23b12b1c9
1 changed files with 3 additions and 6 deletions
|
@ -25,7 +25,7 @@
|
||||||
* A baseclass for scopes (visualizers). It takes care of re-fitting the
|
* A baseclass for scopes (visualizers). It takes care of re-fitting the
|
||||||
* audio-rate to video-rate and handles renegotiation (downstream video size
|
* audio-rate to video-rate and handles renegotiation (downstream video size
|
||||||
* changes).
|
* changes).
|
||||||
*
|
*
|
||||||
* It also provides several background shading effects. These effects are
|
* It also provides several background shading effects. These effects are
|
||||||
* applied to a previous picture before the render() implementation can draw a
|
* applied to a previous picture before the render() implementation can draw a
|
||||||
* new frame.
|
* new frame.
|
||||||
|
@ -167,9 +167,7 @@ gst_audio_visualizer_shader_get_type (void)
|
||||||
|
|
||||||
if (G_UNLIKELY (shader_type == 0)) {
|
if (G_UNLIKELY (shader_type == 0)) {
|
||||||
/* TODO: rename when exporting it as a library */
|
/* TODO: rename when exporting it as a library */
|
||||||
shader_type =
|
shader_type = g_enum_register_static ("GstAudioVisualizerShader", shaders);
|
||||||
g_enum_register_static
|
|
||||||
("GstAudioVisualizerShader-BaseExtLibvisual", shaders);
|
|
||||||
}
|
}
|
||||||
return shader_type;
|
return shader_type;
|
||||||
}
|
}
|
||||||
|
@ -553,8 +551,7 @@ gst_audio_visualizer_get_type (void)
|
||||||
|
|
||||||
/* TODO: rename when exporting it as a library */
|
/* TODO: rename when exporting it as a library */
|
||||||
_type = g_type_register_static (GST_TYPE_ELEMENT,
|
_type = g_type_register_static (GST_TYPE_ELEMENT,
|
||||||
"GstAudioVisualizer-BaseExtLibvisual", &audio_visualizer_info,
|
"GstAudioVisualizer", &audio_visualizer_info, G_TYPE_FLAG_ABSTRACT);
|
||||||
G_TYPE_FLAG_ABSTRACT);
|
|
||||||
g_once_init_leave (&audio_visualizer_type, _type);
|
g_once_init_leave (&audio_visualizer_type, _type);
|
||||||
}
|
}
|
||||||
return (GType) audio_visualizer_type;
|
return (GType) audio_visualizer_type;
|
||||||
|
|
Loading…
Reference in a new issue