diff options
author | Thiago Santos <thiagoss@osg.samsung.com> | 2015-12-01 00:30:08 -0300 |
---|---|---|
committer | Thiago Santos <thiagoss@osg.samsung.com> | 2015-12-01 00:30:08 -0300 |
commit | 5e00c012d2516155339405b00e83454f61a7e16d (patch) | |
tree | 11247421d7c424727aa83325151ec7706384cce4 | |
parent | d55458135a8e0f0bd16703cfa84418612b9e7091 (diff) |
wavparse: remove extra variable to improve readability
Makes it easier to see that the event is being replaced/unrefed
-rw-r--r-- | gst/wavparse/gstwavparse.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gst/wavparse/gstwavparse.c b/gst/wavparse/gstwavparse.c index 87141eb19..1452db4ae 100644 --- a/gst/wavparse/gstwavparse.c +++ b/gst/wavparse/gstwavparse.c @@ -1085,7 +1085,6 @@ gst_wavparse_stream_headers (GstWavParse * wav) gboolean gotdata = FALSE; GstCaps *caps = NULL; gchar *codec_name = NULL; - GstEvent **event_p; gint64 upstream_size = 0; GstStructure *s; @@ -1679,8 +1678,7 @@ gst_wavparse_stream_headers (GstWavParse * wav) * the right newsegment event downstream. */ gst_wavparse_perform_seek (wav, wav->seek_event); /* remove pending event */ - event_p = &wav->seek_event; - gst_event_replace (event_p, NULL); + gst_event_replace (&wav->seek_event, NULL); /* we just started, we are discont */ wav->discont = TRUE; @@ -1818,7 +1816,6 @@ gst_wavparse_send_event (GstElement * element, GstEvent * event) { GstWavParse *wav = GST_WAVPARSE (element); gboolean res = FALSE; - GstEvent **event_p; GST_DEBUG_OBJECT (wav, "received event %s", GST_EVENT_TYPE_NAME (event)); @@ -1830,8 +1827,7 @@ gst_wavparse_send_event (GstElement * element, GstEvent * event) } else { GST_DEBUG_OBJECT (wav, "queuing seek for later"); - event_p = &wav->seek_event; - gst_event_replace (event_p, event); + gst_event_replace (&wav->seek_event, event); /* we always return true */ res = TRUE; |