Skip to content

Commit

Permalink
Put the per-stream volume element back where it was. Moving it breaks
Browse files Browse the repository at this point in the history
2008-12-15  Jonathan Matthew  <[email protected]>

	* backends/gstreamer/rb-player-gst-xfade.c: (create_stream):
	Put the per-stream volume element back where it was.  Moving it breaks
	fading out (mostly) and doesn't really fix the problem it was supposed
	to fix.

svn path=/trunk/; revision=6098
  • Loading branch information
Jonathan Matthew authored and Jonathan Matthew committed Dec 14, 2008
1 parent 6fce5bf commit cf013c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2008-12-15 Jonathan Matthew <[email protected]>

* backends/gstreamer/rb-player-gst-xfade.c: (create_stream):
Put the per-stream volume element back where it was. Moving it breaks
fading out (mostly) and doesn't really fix the problem it was supposed
to fix.

2008-12-10 Jonathan Matthew <[email protected]>

* backends/gstreamer/rb-player-gst-xfade.c: (start_stream_fade),
Expand Down
12 changes: 6 additions & 6 deletions backends/gstreamer/rb-player-gst-xfade.c
Original file line number Diff line number Diff line change
Expand Up @@ -2200,8 +2200,8 @@ create_stream (RBPlayerGstXFade *player, const char *uri, gpointer stream_data,
stream->audioconvert,
stream->audioresample,
stream->capsfilter,
stream->volume,
stream->preroll,
stream->volume,
NULL);
gst_element_link_many (stream->source,
stream->queue,
Expand All @@ -2210,8 +2210,8 @@ create_stream (RBPlayerGstXFade *player, const char *uri, gpointer stream_data,
gst_element_link_many (stream->audioconvert,
stream->audioresample,
stream->capsfilter,
stream->volume,
stream->preroll,
stream->volume,
NULL);
} else {
gst_bin_add_many (GST_BIN (stream->bin),
Expand All @@ -2220,17 +2220,17 @@ create_stream (RBPlayerGstXFade *player, const char *uri, gpointer stream_data,
stream->audioconvert,
stream->audioresample,
stream->capsfilter,
stream->volume,
stream->preroll,
stream->volume,
NULL);
gst_element_link_many (stream->source,
stream->decoder,
NULL);
gst_element_link_many (stream->audioconvert,
stream->audioresample,
stream->capsfilter,
stream->volume,
stream->preroll,
stream->volume,
NULL);
}

Expand All @@ -2242,7 +2242,7 @@ create_stream (RBPlayerGstXFade *player, const char *uri, gpointer stream_data,

identity = gst_element_factory_make ("identity", NULL);
gst_bin_add (GST_BIN (stream->bin), identity);
gst_element_link (stream->preroll, identity);
gst_element_link (stream->volume, identity);
if (rb_debug_matches ("check-imperfect-timestamp", __FILE__)) {
g_object_set (identity, "check-imperfect-timestamp", TRUE, NULL);
}
Expand All @@ -2252,7 +2252,7 @@ create_stream (RBPlayerGstXFade *player, const char *uri, gpointer stream_data,

stream->src_pad = gst_element_get_pad (identity, "src");
} else {
stream->src_pad = gst_element_get_pad (stream->preroll, "src");
stream->src_pad = gst_element_get_pad (stream->volume, "src");
}

/* ghost the stream src pad up to the bin */
Expand Down

0 comments on commit cf013c9

Please sign in to comment.