mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
synaesthesia: code cleanups.
Remove unused boilerplate for signals. Use _OBJECT variants of logging macros more.
This commit is contained in:
parent
ed9fd645ad
commit
73cc65fa88
1 changed files with 2 additions and 9 deletions
|
@ -39,13 +39,6 @@
|
||||||
|
|
||||||
#include "gstsynaesthesia.h"
|
#include "gstsynaesthesia.h"
|
||||||
|
|
||||||
/* signals and args */
|
|
||||||
enum
|
|
||||||
{
|
|
||||||
/* FILL ME */
|
|
||||||
LAST_SIGNAL
|
|
||||||
};
|
|
||||||
|
|
||||||
static GstStaticPadTemplate gst_synaesthesia_src_template =
|
static GstStaticPadTemplate gst_synaesthesia_src_template =
|
||||||
GST_STATIC_PAD_TEMPLATE ("src",
|
GST_STATIC_PAD_TEMPLATE ("src",
|
||||||
GST_PAD_SRC,
|
GST_PAD_SRC,
|
||||||
|
@ -263,7 +256,7 @@ gst_synaesthesia_src_negotiate (GstSynaesthesia * synaesthesia)
|
||||||
gst_structure_fixate_field_nearest_fraction (structure, "framerate",
|
gst_structure_fixate_field_nearest_fraction (structure, "framerate",
|
||||||
synaesthesia->fps_n, synaesthesia->fps_d);
|
synaesthesia->fps_n, synaesthesia->fps_d);
|
||||||
|
|
||||||
GST_DEBUG ("final caps are %" GST_PTR_FORMAT, target);
|
GST_DEBUG_OBJECT (synaesthesia, "final caps are %" GST_PTR_FORMAT, target);
|
||||||
|
|
||||||
gst_pad_set_caps (synaesthesia->srcpad, target);
|
gst_pad_set_caps (synaesthesia->srcpad, target);
|
||||||
gst_caps_unref (target);
|
gst_caps_unref (target);
|
||||||
|
@ -334,7 +327,7 @@ gst_synaesthesia_chain (GstPad * pad, GstBuffer * buffer)
|
||||||
|
|
||||||
synaesthesia = GST_SYNAESTHESIA (gst_pad_get_parent (pad));
|
synaesthesia = GST_SYNAESTHESIA (gst_pad_get_parent (pad));
|
||||||
|
|
||||||
GST_LOG ("chainfunc called");
|
GST_LOG_OBJECT (synaesthesia, "chainfunc called");
|
||||||
|
|
||||||
/* resync on DISCONT */
|
/* resync on DISCONT */
|
||||||
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DISCONT)) {
|
if (GST_BUFFER_FLAG_IS_SET (buffer, GST_BUFFER_FLAG_DISCONT)) {
|
||||||
|
|
Loading…
Reference in a new issue