Make elements nanoseconds aware
Original commit message from CVS: Make elements nanoseconds aware
This commit is contained in:
parent
4ca1e48612
commit
71bf0f1245
@ -2,7 +2,7 @@ plugindir = $(libdir)/gst
|
||||
|
||||
plugin_LTLIBRARIES = libgstlibfame.la
|
||||
|
||||
libgstlibfame_la_SOURCES = gstlibfame.c
|
||||
libgstlibfame_la_SOURCES = gstlibfame.c gstfamedec.c
|
||||
libgstlibfame_la_CFLAGS = $(GST_CFLAGS)
|
||||
libgstlibfame_la_LIBADD = $(LIBFAME_LIBS)
|
||||
libgstlibfame_la_LDFLAGS = $(GST_PLUGIN_LDFLAGS)
|
||||
|
@ -362,7 +362,7 @@ gst_modplug_loop (GstElement *element)
|
||||
GST_BUFFER_SIZE( buffer_out ) = modplug->length;
|
||||
|
||||
total_samples+=1152;
|
||||
GST_BUFFER_TIMESTAMP( buffer_out ) = total_samples * 1000000LL / modplug->frequency;
|
||||
GST_BUFFER_TIMESTAMP( buffer_out ) = total_samples * GST_SECOND / modplug->frequency;
|
||||
|
||||
gst_pad_push( srcpad, buffer_out );
|
||||
gst_element_yield (element);
|
||||
|
Loading…
x
Reference in New Issue
Block a user