From fe3d02a6ca570c71ddf68bde3ceb543de061f2ca Mon Sep 17 00:00:00 2001 From: "Ronald S. Bultje" Date: Thu, 15 Jul 2004 23:56:05 +0000 Subject: gst-libs/gst/riff/riff-media.c: mp42/mp43 (no caps) exist too. Original commit message from CVS: * gst-libs/gst/riff/riff-media.c: (gst_riff_create_video_caps_with_data): mp42/mp43 (no caps) exist too. * gst/matroska/matroska-demux.c: (gst_matroska_demux_video_caps): Set pixel_width/height; we've got them in-caps. * gst/typefind/gsttypefindfunctions.c: (plugin_init): * gst/wavparse/gstwavparse.c: (plugin_init): Both are valid primary. * sys/oss/gstossmixer.c: Remove i18n hack and enable translations. --- ChangeLog | 13 +++++++++++++ gst/matroska/matroska-demux.c | 8 ++++++-- gst/wavparse/gstwavparse.c | 2 +- sys/oss/gstossmixer.c | 6 +++--- 4 files changed, 23 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 021e9e60..233268cb 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,16 @@ +2004-07-15 Ronald Bultje + + * gst-libs/gst/riff/riff-media.c: + (gst_riff_create_video_caps_with_data): + mp42/mp43 (no caps) exist too. + * gst/matroska/matroska-demux.c: (gst_matroska_demux_video_caps): + Set pixel_width/height; we've got them in-caps. + * gst/typefind/gsttypefindfunctions.c: (plugin_init): + * gst/wavparse/gstwavparse.c: (plugin_init): + Both are valid primary. + * sys/oss/gstossmixer.c: + Remove i18n hack and enable translations. + 2004-07-15 Benjamin Otte * sys/xvimage/xvimagesink.c: (gst_xvimagesink_check_xshm_calls), diff --git a/gst/matroska/matroska-demux.c b/gst/matroska/matroska-demux.c index 4ff21de3..ae670c68 100644 --- a/gst/matroska/matroska-demux.c +++ b/gst/matroska/matroska-demux.c @@ -2445,7 +2445,7 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext * videocontext, "width", GST_TYPE_INT_RANGE, 16, 4096, "height", GST_TYPE_INT_RANGE, 16, 4096, NULL); } -#if 0 + if (videocontext->display_width > 0 && videocontext->display_height > 0) { gint w = 100 * videocontext->display_width / videocontext->pixel_width; @@ -2455,8 +2455,12 @@ gst_matroska_demux_video_caps (GstMatroskaTrackVideoContext * videocontext, gst_structure_set (structure, "pixel_width", G_TYPE_INT, w, "pixel_height", G_TYPE_INT, h, NULL); + } else { + gst_structure_set (structure, + "pixel_width", G_TYPE_INT, 1, + "pixel_height", G_TYPE_INT, 1, NULL); } -#endif + if (context->default_duration > 0) { gfloat framerate = 1. * GST_SECOND / context->default_duration; diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 7d24f362..86db360f 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -966,7 +966,7 @@ plugin_init (GstPlugin * plugin) return FALSE; } - return gst_element_register (plugin, "wavparse", GST_RANK_SECONDARY, + return gst_element_register (plugin, "wavparse", GST_RANK_PRIMARY, GST_TYPE_WAVPARSE); } diff --git a/sys/oss/gstossmixer.c b/sys/oss/gstossmixer.c index 274d1205..0ee0ee10 100644 --- a/sys/oss/gstossmixer.c +++ b/sys/oss/gstossmixer.c @@ -45,6 +45,8 @@ #endif /* HAVE_OSS_INCLUDE_IN_SYS */ +#include + #include "gstossmixer.h" #define MASK_BIT_IS_SET(mask, bit) \ @@ -73,11 +75,9 @@ static GstMixerTrackClass *parent_class = NULL; /* three functions: firstly, OSS has the nasty habit of inserting * spaces in the labels, we want to get rid of them. Secondly, * i18n is impossible with OSS' way of providing us with mixer - * labels, so we make a 'given' list of i18n'ed labels. Since - * i18n doesn't actually work, we fake it (FIXME). Thirdly, I + * labels, so we make a 'given' list of i18n'ed labels. Thirdly, I * personally don't like the "1337" names that OSS gives to their * labels ("Vol", "Mic", "Rec"), I'd rather see full names. */ -#define _(s) s static void fill_labels (void) -- cgit