Commit ec24b0df authored by Wim Taymans's avatar Wim Taymans

ext/dv/: Ueber spiffify some more, added debug category.

Original commit message from CVS:
* ext/dv/gstdvdec.c: (gst_dvdec_base_init), (gst_dvdec_init),
(gst_dvdec_change_state):
* ext/dv/gstdvdec.h:
* ext/dv/gstdvdemux.c: (gst_dvdemux_base_init), (gst_dvdemux_init),
(gst_dvdemux_src_convert), (gst_dvdemux_sink_convert),
(gst_dvdemux_src_query), (gst_dvdemux_sink_query),
(gst_dvdemux_handle_sink_event), (gst_dvdemux_demux_frame),
(gst_dvdemux_flush), (gst_dvdemux_chain),
(gst_dvdemux_change_state):
* ext/dv/gstdvdemux.h:
Ueber spiffify some more, added debug category.
Use _scale.
Use segments, respect playback rate from newsegment.
Fix refcount issue.
parent 7eed67bb
2006-02-22 Wim Taymans <wim@fluendo.com>
* ext/dv/gstdvdec.c: (gst_dvdec_base_init), (gst_dvdec_init),
(gst_dvdec_change_state):
* ext/dv/gstdvdec.h:
* ext/dv/gstdvdemux.c: (gst_dvdemux_base_init), (gst_dvdemux_init),
(gst_dvdemux_src_convert), (gst_dvdemux_sink_convert),
(gst_dvdemux_src_query), (gst_dvdemux_sink_query),
(gst_dvdemux_handle_sink_event), (gst_dvdemux_demux_frame),
(gst_dvdemux_flush), (gst_dvdemux_chain),
(gst_dvdemux_change_state):
* ext/dv/gstdvdemux.h:
Ueber spiffify some more, added debug category.
Use _scale.
Use segments, respect playback rate from newsegment.
Fix refcount issue.
2006-02-20 Jan Schmidt <thaytan@mad.scientist.com>
* ext/ladspa/gstsignalprocessor.c: (gst_signal_processor_event),
......
......@@ -37,6 +37,9 @@ GST_ELEMENT_DETAILS ("DV (smpte314) decoder plugin",
#define DV_DEFAULT_QUALITY DV_QUALITY_BEST
#define DV_DEFAULT_DECODE_NTH 1
GST_DEBUG_CATEGORY (dvdec_debug);
#define GST_CAT_DEFAULT dvdec_debug
enum
{
PROP_0,
......@@ -133,6 +136,8 @@ gst_dvdec_base_init (gpointer g_class)
gst_static_pad_template_get (&src_temp));
gst_element_class_set_details (element_class, &dvdec_details);
GST_DEBUG_CATEGORY_INIT (dvdec_debug, "dvdec", 0, "DV decoding element");
}
static void
......@@ -190,7 +195,6 @@ gst_dvdec_init (GstDVDec * dvdec, GstDVDecClass * g_class)
dvdec->height = 0;
dvdec->wide = FALSE;
dvdec->drop_factor = 1;
dvdec->headers_seen = FALSE;
dvdec->clamp_luma = FALSE;
dvdec->clamp_chroma = FALSE;
......@@ -353,7 +357,6 @@ gst_dvdec_change_state (GstElement * element, GstStateChange transition)
case GST_STATE_CHANGE_PAUSED_TO_READY:
dv_decoder_free (dvdec->decoder);
dvdec->decoder = NULL;
dvdec->headers_seen = FALSE;
break;
case GST_STATE_CHANGE_READY_TO_NULL:
break;
......
......@@ -69,7 +69,6 @@ struct _GstDVDec {
gint video_offset;
gint drop_factor;
gboolean headers_seen;
};
struct _GstDVDecClass {
......
This diff is collapsed.
......@@ -21,15 +21,12 @@
#ifndef __GST_DVDEMUX_H__
#define __GST_DVDEMUX_H__
#include <gst/gst.h>
#include <libdv/dv.h>
#include <gst/base/gstadapter.h>
G_BEGIN_DECLS
#define GST_TYPE_DVDEMUX \
(gst_dvdemux_get_type())
#define GST_DVDEMUX(obj) \
......@@ -45,7 +42,6 @@ G_BEGIN_DECLS
typedef struct _GstDVDemux GstDVDemux;
typedef struct _GstDVDemuxClass GstDVDemuxClass;
struct _GstDVDemux {
GstElement element;
......@@ -77,12 +73,9 @@ struct _GstDVDemux {
guint64 audio_offset;
guint64 video_offset;
gint64 start_byte;
gint64 stop_byte;
gint64 start_timestamp;
gint64 stop_timestamp;
gboolean need_discont;
GstSegment byte_segment;
GstSegment time_segment;
gboolean need_segment;
gboolean new_media;
gboolean found_header;
......@@ -94,11 +87,8 @@ struct _GstDVDemuxClass {
GstElementClass parent_class;
};
GType gst_dvdemux_get_type (void);
G_END_DECLS
#endif /* __GST_DVDEMUX_H__ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment