mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
gst/asfdemux/gstasfdemux.c: Use 25fps as our "fake" fps value (marked for fixage in 0.9.x) instead of 0. Reason is si...
Original commit message from CVS: * gst/asfdemux/gstasfdemux.c: (gst_asf_demux_video_caps), (gst_asf_demux_setup_pad): Use 25fps as our "fake" fps value (marked for fixage in 0.9.x) instead of 0. Reason is simple: some elements have a fps range of 1-max instead of 0-max. So now ASF video actually works.
This commit is contained in:
parent
a6d4760f9f
commit
06c87a5fbf
2 changed files with 11 additions and 2 deletions
|
@ -1,3 +1,11 @@
|
||||||
|
2004-03-13 Ronald Bultje <rbultje@ronald.bitfreak.net>
|
||||||
|
|
||||||
|
* gst/asfdemux/gstasfdemux.c: (gst_asf_demux_video_caps),
|
||||||
|
(gst_asf_demux_setup_pad):
|
||||||
|
Use 25fps as our "fake" fps value (marked for fixage in 0.9.x)
|
||||||
|
instead of 0. Reason is simple: some elements have a fps range
|
||||||
|
of 1-max instead of 0-max. So now ASF video actually works.
|
||||||
|
|
||||||
2004-03-13 Thomas Vander Stichele <thomas at apestaart dot org>
|
2004-03-13 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* po/LINGUAS:
|
* po/LINGUAS:
|
||||||
|
|
|
@ -1626,12 +1626,12 @@ gst_asf_demux_video_caps (guint32 codec_fcc,
|
||||||
gst_caps_set_simple (caps,
|
gst_caps_set_simple (caps,
|
||||||
"width", G_TYPE_INT, video->width,
|
"width", G_TYPE_INT, video->width,
|
||||||
"height", G_TYPE_INT, video->height,
|
"height", G_TYPE_INT, video->height,
|
||||||
"framerate", G_TYPE_DOUBLE, (double) 0, NULL);
|
"framerate", G_TYPE_DOUBLE, (double) 25, NULL);
|
||||||
} else {
|
} else {
|
||||||
gst_caps_set_simple (caps,
|
gst_caps_set_simple (caps,
|
||||||
"width", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
"width", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
||||||
"height", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
"height", GST_TYPE_INT_RANGE, 1, G_MAXINT,
|
||||||
"framerate", GST_TYPE_DOUBLE_RANGE, 0.0, G_MAXDOUBLE,
|
"framerate", GST_TYPE_DOUBLE_RANGE, 25.0, G_MAXDOUBLE,
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1679,6 +1679,7 @@ gst_asf_demux_setup_pad (GstASFDemux *asf_demux,
|
||||||
{
|
{
|
||||||
asf_stream_context *stream;
|
asf_stream_context *stream;
|
||||||
|
|
||||||
|
gst_pad_use_explicit_caps (src_pad);
|
||||||
gst_pad_set_explicit_caps (src_pad, caps);
|
gst_pad_set_explicit_caps (src_pad, caps);
|
||||||
gst_pad_set_formats_function (src_pad, gst_asf_demux_get_src_formats);
|
gst_pad_set_formats_function (src_pad, gst_asf_demux_get_src_formats);
|
||||||
gst_pad_set_event_mask_function (src_pad, gst_asf_demux_get_src_event_mask);
|
gst_pad_set_event_mask_function (src_pad, gst_asf_demux_get_src_event_mask);
|
||||||
|
|
Loading…
Reference in a new issue