mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-02 21:48:55 +00:00
sys/dvb/gstdvbsrc.*: Fix minor printf format issue; remove overly paranoid checks in create function; fix GObject boi...
Original commit message from CVS: * sys/dvb/gstdvbsrc.c: (gst_dvbsrc_create): * sys/dvb/gstdvbsrc.h: Fix minor printf format issue; remove overly paranoid checks in create function; fix GObject boilerplate macros.
This commit is contained in:
parent
e9d741454d
commit
5cbfd21fe5
3 changed files with 14 additions and 16 deletions
|
@ -1,3 +1,10 @@
|
|||
2006-11-14 Tim-Philipp Müller <tim at centricular dot net>
|
||||
|
||||
* sys/dvb/gstdvbsrc.c: (gst_dvbsrc_create):
|
||||
* sys/dvb/gstdvbsrc.h:
|
||||
Fix minor printf format issue; remove overly paranoid checks in
|
||||
create function; fix GObject boilerplate macros.
|
||||
|
||||
2006-11-14 Wim Taymans <wim@fluendo.com>
|
||||
|
||||
* gst/qtdemux/qtdemux.c: (gst_qtdemux_get_duration),
|
||||
|
|
|
@ -837,17 +837,14 @@ read_device (int fd, const char *fd_name, int size)
|
|||
static GstFlowReturn
|
||||
gst_dvbsrc_create (GstPushSrc * element, GstBuffer ** buf)
|
||||
{
|
||||
static int quality_signal_rate = 0;
|
||||
static int quality_signal_rate = 0; /* FIXME: move into object struct? */
|
||||
gint buffer_size;
|
||||
GstFlowReturn retval = GST_FLOW_ERROR;
|
||||
GstDvbSrc *object;
|
||||
|
||||
GstDvbSrc *object = NULL;
|
||||
|
||||
g_return_val_if_fail (GST_IS_DVBSRC (element), GST_FLOW_ERROR);
|
||||
object = GST_DVBSRC (element);
|
||||
GST_LOG ("buf: 0x%x fd_dvr: %d", buf, object->fd_dvr);
|
||||
GST_LOG ("fd_dvr: %d", object->fd_dvr);
|
||||
|
||||
g_return_val_if_fail (buf != NULL, GST_FLOW_ERROR);
|
||||
//g_object_get(G_OBJECT(object), "blocksize", &buffer_size, NULL);
|
||||
buffer_size = DEFAULT_BUFFER_SIZE;
|
||||
|
||||
|
|
|
@ -5,11 +5,7 @@
|
|||
#include <gst/gst.h>
|
||||
#include <gst/base/gstpushsrc.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C"
|
||||
{
|
||||
#endif /* __cplusplus */
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
typedef enum
|
||||
{
|
||||
|
@ -36,10 +32,10 @@ extern "C"
|
|||
#define GST_DVBSRC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_CAST((obj),GST_TYPE_DVBSRC,GstDvbSrc))
|
||||
#define GST_DVBSRC_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DVBSRC,GstDvbSrc))
|
||||
(G_TYPE_CHECK_CLASS_CAST((klass),GST_TYPE_DVBSRC,GstDvbSrcClass))
|
||||
#define GST_IS_DVBSRC(obj) \
|
||||
(G_TYPE_CHECK_INSTANCE_TYPE((obj),GST_TYPE_DVBSRC))
|
||||
#define GST_IS_DVBSRC_CLASS(obj) \
|
||||
#define GST_IS_DVBSRC_CLASS(klass) \
|
||||
(G_TYPE_CHECK_CLASS_TYPE((klass),GST_TYPE_DVBSRC))
|
||||
|
||||
typedef struct _GstDvbSrc GstDvbSrc;
|
||||
|
@ -95,8 +91,6 @@ extern "C"
|
|||
|
||||
GType gst_dvbsrc_get_type (void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif /* __cplusplus */
|
||||
G_END_DECLS
|
||||
|
||||
#endif /* __GST_DVBSRC_H__ */
|
||||
|
|
Loading…
Reference in a new issue