After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 306233 - Porting work on videotestsrc, using GstBaseSrc
Porting work on videotestsrc, using GstBaseSrc
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-plugins
git master
Other All
: Normal normal
: 0.9.x
Assigned To: Andy Wingo
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-06-02 08:07 UTC by lipeng
Modified: 2005-07-15 16:23 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
patch for the gstvideotestsrc.c (23.88 KB, patch)
2005-06-02 08:09 UTC, lipeng
none Details | Review
patch for the gstvideotestsrc.h (685 bytes, patch)
2005-06-02 08:10 UTC, lipeng
none Details | Review
patch for Makefile.am (494 bytes, patch)
2005-06-02 08:11 UTC, lipeng
none Details | Review

Description lipeng 2005-06-02 08:07:15 UTC
Please describe the problem:
Change the data structure GstVideotestsrc, Make it inherit from GstBaseSrc
add gstvideotestsrc_start(), gstvideotestsrc_stop(), gstvideotestsrc_create()
interface. remove the _loop() and _activate() function. More compatible with
Gstreamer 0.9

will submit the patch later

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 lipeng 2005-06-02 08:09:38 UTC
Created attachment 47127 [details] [review]
patch for the gstvideotestsrc.c
Comment 2 lipeng 2005-06-02 08:10:36 UTC
Created attachment 47128 [details] [review]
patch for the gstvideotestsrc.h
Comment 3 lipeng 2005-06-02 08:11:27 UTC
Created attachment 47129 [details] [review]
patch for  Makefile.am
Comment 4 Andy Wingo 2005-07-14 14:22:49 UTC
Hi Lipeng,

Wow, we need to look at these bugs more. Also, a little poking doesn't hurt --
let us know if a patch sits around for too long.

Now, some comments. Your patch is a bit too big, difficult to see the actual
changes. To fix this next time,

1) Try not to introduce whitespace / indentation changes. If your editor makes
this difficult, run gst-indent (from core gstreamer, gstreamer/tools/gst-indent)
on the code before diffing.

2) Don't change things randomly -- or if you do, include those style fixes in a
separate patch. e.g.

-gst_videotestsrc_base_init (gpointer g_class)
+gst_videotestsrc_base_init (GstVideotestsrcClass * klass)

does not need to be in this patch.

+  outbuf = gst_pad_alloc_buffer (pad, GST_BUFFER_OFFSET_NONE, newsize,
GST_RPAD_CAPS (pad));
+
+  if (GST_BUFFER_CAPS (outbuf) != GST_PAD_CAPS (pad)) {

gst_pad_alloc_buffer does a setcaps already. Also, by now its signature has
changed, so as to return a FlowReturn.

Otherwise the patch is fine, if updated to the latest API. I'll probably go
ahead and do that now, because I need to ping ds for some other
videotestsrc-related things.
Comment 5 David Schleef 2005-07-14 19:38:57 UTC
-gst_videotestsrc_base_init (gpointer g_class)
+gst_videotestsrc_base_init (GstVideotestsrcClass * klass)

is also wrong, imo.
Comment 6 Andy Wingo 2005-07-15 16:23:07 UTC
Hm, right. Well in anycase Wim ported this already, so closing as FIXED.