diff options
author | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-07-15 23:56:05 +0000 |
---|---|---|
committer | Ronald S. Bultje <rbultje@ronald.bitfreak.net> | 2004-07-15 23:56:05 +0000 |
commit | fe3d02a6ca570c71ddf68bde3ceb543de061f2ca (patch) | |
tree | 485c23124ee64d99fb715755ad1a59d541c07096 /gst | |
parent | b86a1d2e7c3b2a78a3bbd95c572b9a1511bd3529 (diff) |
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.
Diffstat (limited to 'gst')
-rw-r--r-- | gst/matroska/matroska-demux.c | 8 | ||||
-rw-r--r-- | gst/wavparse/gstwavparse.c | 2 |
2 files changed, 7 insertions, 3 deletions
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); } |