mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-18 06:16:36 +00:00
ext/libvisual/visual.c: use the right caps depending on endianness (I hope)
Original commit message from CVS: * ext/libvisual/visual.c: (gst_visual_getcaps): use the right caps depending on endianness (I hope) * ext/ogg/gstoggmux.c: (gst_ogg_mux_plugin_init): use GST_RANK_NONE for all non-decoding elements or spider gets mighty confused
This commit is contained in:
parent
590a756a84
commit
a5f5f9a77b
3 changed files with 19 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
|||
2004-05-11 Benjamin Otte <in7y118@public.uni-hamburg.de>
|
||||
|
||||
* ext/libvisual/visual.c: (gst_visual_getcaps):
|
||||
use the right caps depending on endianness (I hope)
|
||||
* ext/ogg/gstoggmux.c: (gst_ogg_mux_plugin_init):
|
||||
use GST_RANK_NONE for all non-decoding elements or spider gets
|
||||
mighty confused
|
||||
|
||||
2004-05-11 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||
|
||||
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_process_comment):
|
||||
|
|
|
@ -75,7 +75,12 @@ static GstStaticPadTemplate src_template = GST_STATIC_PAD_TEMPLATE ("src",
|
|||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (GST_VIDEO_CAPS_xRGB_HOST_ENDIAN "; "
|
||||
GST_VIDEO_CAPS_BGR "; " GST_VIDEO_CAPS_RGB_16)
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
GST_VIDEO_CAPS_RGB "; "
|
||||
#else
|
||||
GST_VIDEO_CAPS_BGR "; "
|
||||
#endif
|
||||
GST_VIDEO_CAPS_RGB_16)
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate sink_template = GST_STATIC_PAD_TEMPLATE ("sink",
|
||||
|
@ -214,7 +219,11 @@ gst_visual_getcaps (GstPad * pad)
|
|||
}
|
||||
if (visual_actor_depth_is_supported (visual->actor,
|
||||
VISUAL_VIDEO_CONTEXT_24BIT) == 1) {
|
||||
#if G_BYTE_ORDER == G_BIG_ENDIAN
|
||||
gst_caps_append (ret, gst_caps_from_string (GST_VIDEO_CAPS_RGB));
|
||||
#else
|
||||
gst_caps_append (ret, gst_caps_from_string (GST_VIDEO_CAPS_BGR));
|
||||
#endif
|
||||
}
|
||||
if (visual_actor_depth_is_supported (visual->actor,
|
||||
VISUAL_VIDEO_CONTEXT_16BIT) == 1) {
|
||||
|
|
|
@ -673,6 +673,6 @@ gst_ogg_mux_plugin_init (GstPlugin * plugin)
|
|||
{
|
||||
GST_DEBUG_CATEGORY_INIT (gst_ogg_mux_debug, "oggmux", 0, "ogg muxer");
|
||||
|
||||
return gst_element_register (plugin, "oggmux", GST_RANK_PRIMARY,
|
||||
return gst_element_register (plugin, "oggmux", GST_RANK_NONE,
|
||||
GST_TYPE_OGG_MUX);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue