diff options
author | Wim Taymans <wim.taymans@gmail.com> | 2006-02-22 20:22:25 +0000 |
---|---|---|
committer | Wim Taymans <wim.taymans@gmail.com> | 2006-02-22 20:22:25 +0000 |
commit | ec24b0dfabf90f2a47c6999db42e382e666852cc (patch) | |
tree | b5a83108653f5cd29f579045a45dd190a078826e /ext/dv/gstdvdec.c | |
parent | 7eed67bb6b38180da07ca16e87ce4207cc93bc9d (diff) |
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.
Diffstat (limited to 'ext/dv/gstdvdec.c')
-rw-r--r-- | ext/dv/gstdvdec.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/ext/dv/gstdvdec.c b/ext/dv/gstdvdec.c index 2b52a67f..85ccf884 100644 --- a/ext/dv/gstdvdec.c +++ b/ext/dv/gstdvdec.c @@ -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; |