mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-10-05 02:02:26 +00:00
notify; don't overlimit
Original commit message from CVS: notify; don't overlimit
This commit is contained in:
parent
b72439823e
commit
cc145719cd
3 changed files with 15 additions and 5 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2004-06-17 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
|
* gst/videorate/gstvideorate.c: (gst_videorate_chain):
|
||||||
|
notify drops and duplicates
|
||||||
|
* gst/videoscale/videoscale.c: (videoscale_get_structure):
|
||||||
|
no good reason to limit ourselves to 100x100
|
||||||
|
|
||||||
2004-06-17 Thomas Vander Stichele <thomas at apestaart dot org>
|
2004-06-17 Thomas Vander Stichele <thomas at apestaart dot org>
|
||||||
|
|
||||||
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_class_init), (gst_v4lsrc_init),
|
* sys/v4l/gstv4lsrc.c: (gst_v4lsrc_class_init), (gst_v4lsrc_init),
|
||||||
|
|
|
@ -348,12 +348,15 @@ gst_videorate_chain (GstPad * pad, GstData * data)
|
||||||
while (diff1 <= diff2);
|
while (diff1 <= diff2);
|
||||||
|
|
||||||
/* if we outputed the first buffer more then once, we have dups */
|
/* if we outputed the first buffer more then once, we have dups */
|
||||||
if (count > 1)
|
if (count > 1) {
|
||||||
videorate->dup += count - 1;
|
videorate->dup += count - 1;
|
||||||
|
g_object_notify (G_OBJECT (videorate), "duplicate");
|
||||||
|
}
|
||||||
/* if we didn't output the first buffer, we have a drop */
|
/* if we didn't output the first buffer, we have a drop */
|
||||||
else if (count == 0)
|
else if (count == 0) {
|
||||||
videorate->drop++;
|
videorate->drop++;
|
||||||
|
g_object_notify (G_OBJECT (videorate), "drop");
|
||||||
|
}
|
||||||
// g_print ("swap: diff1 %lld, diff2 %lld, in %d, out %d, drop %d, dup %d\n", diff1, diff2,
|
// g_print ("swap: diff1 %lld, diff2 %lld, in %d, out %d, drop %d, dup %d\n", diff1, diff2,
|
||||||
// videorate->in, videorate->out, videorate->drop, videorate->dup);
|
// videorate->in, videorate->out, videorate->drop, videorate->dup);
|
||||||
|
|
||||||
|
|
|
@ -141,8 +141,8 @@ videoscale_get_structure (struct videoscale_format_struct *format)
|
||||||
}
|
}
|
||||||
|
|
||||||
gst_structure_set (structure,
|
gst_structure_set (structure,
|
||||||
"width", GST_TYPE_INT_RANGE, 100, G_MAXINT,
|
"width", GST_TYPE_INT_RANGE, 16, G_MAXINT,
|
||||||
"height", GST_TYPE_INT_RANGE, 100, G_MAXINT,
|
"height", GST_TYPE_INT_RANGE, 16, G_MAXINT,
|
||||||
"framerate", GST_TYPE_DOUBLE_RANGE, 0.0, G_MAXDOUBLE, NULL);
|
"framerate", GST_TYPE_DOUBLE_RANGE, 0.0, G_MAXDOUBLE, NULL);
|
||||||
|
|
||||||
return structure;
|
return structure;
|
||||||
|
|
Loading…
Reference in a new issue