Merge branch 'master' into 0.11

This commit is contained in:
Wim Taymans 2011-04-19 19:03:06 +02:00
commit 198fa2571b
5 changed files with 11 additions and 13 deletions

View file

@ -203,6 +203,10 @@ gst_ff_vid_caps_new (AVCodecContext * context, enum CodecID codec_id,
num = context->time_base.den / context->ticks_per_frame;
denom = context->time_base.num;
if (!denom) {
GST_LOG ("invalid framerate: %d/0, -> %d/1", num, num);
denom = 1;
}
if (gst_util_fraction_compare (num, denom, 1000, 1) > 0) {
GST_LOG ("excessive framerate: %d/%d, -> 0/1", num, denom);
num = 0;

View file

@ -2322,7 +2322,7 @@ static void
gst_ffmpegdec_flush_pcache (GstFFMpegDec * ffmpegdec)
{
if (ffmpegdec->pctx) {
gint res, size, bsize;
gint size, bsize;
guint8 *data;
guint8 bdata[FF_INPUT_BUFFER_PADDING_SIZE];
@ -2331,7 +2331,7 @@ gst_ffmpegdec_flush_pcache (GstFFMpegDec * ffmpegdec)
/* parse some dummy data to work around some ffmpeg weirdness where it keeps
* the previous pts around */
res = av_parser_parse (ffmpegdec->pctx, ffmpegdec->context,
av_parser_parse (ffmpegdec->pctx, ffmpegdec->context,
&data, &size, bdata, bsize, -1, -1);
ffmpegdec->pctx->pts = -1;
ffmpegdec->pctx->dts = -1;
@ -2347,11 +2347,9 @@ static gboolean
gst_ffmpegdec_sink_event (GstPad * pad, GstEvent * event)
{
GstFFMpegDec *ffmpegdec;
GstFFMpegDecClass *oclass;
gboolean ret = FALSE;
ffmpegdec = (GstFFMpegDec *) gst_pad_get_parent (pad);
oclass = (GstFFMpegDecClass *) (G_OBJECT_GET_CLASS (ffmpegdec));
GST_DEBUG_OBJECT (ffmpegdec, "Handling %s event",
GST_EVENT_TYPE_NAME (event));

View file

@ -668,14 +668,12 @@ static gboolean
gst_ffmpegdemux_src_event (GstPad * pad, GstEvent * event)
{
GstFFMpegDemux *demux;
AVStream *avstream;
GstFFStream *stream;
gboolean res = TRUE;
if (!(stream = gst_pad_get_element_private (pad)))
return FALSE;
avstream = stream->avstream;
demux = (GstFFMpegDemux *) gst_pad_get_parent (pad);
switch (GST_EVENT_TYPE (event)) {
@ -1982,8 +1980,10 @@ gst_ffmpegdemux_register (GstPlugin * plugin)
!strcmp (in_plugin->name, "yuv4mpegpipe") ||
!strcmp (in_plugin->name, "mpc") || !strcmp (in_plugin->name, "gif"))
rank = GST_RANK_MARGINAL;
else
rank = GST_RANK_NONE;
else {
GST_DEBUG ("ignoring %s", in_plugin->name);
goto next;
}
p = name = g_strdup (in_plugin->name);
while (*p) {

View file

@ -605,12 +605,11 @@ gst_post_proc_set_property (GObject * object, guint prop_id,
const GValue * value, GParamSpec * pspec)
{
GstPostProc *postproc = (GstPostProc *) object;
gint quality;
gchar *args;
switch (prop_id) {
case PROP_QUALITY:
quality = g_value_get_uint (value);
postproc->quality = g_value_get_uint (value);
break;
case PROP_AUTOQ:
postproc->autoq = g_value_get_boolean (value);

View file

@ -313,7 +313,6 @@ static GstCaps *
gst_ffmpegscale_transform_caps (GstBaseTransform * trans,
GstPadDirection direction, GstCaps * caps)
{
GstFFMpegScale *scale;
GstCaps *ret;
GstStructure *structure;
const GValue *par;
@ -321,8 +320,6 @@ gst_ffmpegscale_transform_caps (GstBaseTransform * trans,
/* this function is always called with a simple caps */
g_return_val_if_fail (GST_CAPS_IS_SIMPLE (caps), NULL);
scale = GST_FFMPEGSCALE (trans);
structure = gst_caps_get_structure (caps, 0);
ret = gst_caps_copy (caps);